Firebase is a very simple and secure way to deploy a Hoverboard site. You can sign up for a free account and deploy your application in less than 5 minutes.
The instructions below are based on the Firebase quick start.
-
Install the Firebase command line tools
npm install -g firebase-tools
The
-g
flag instructsnpm
to install the package globally so that you can use thefirebase
command from any directory. You may need to install the package withsudo
privileges. -
cd
into your project directory -
Inititalize the Firebase application
firebase init
Running the firebase init command creates a firebase.json settings file in the root of your project directory. Otherwise, go to Firebase console to create a new app.
-
When you initialize your app, you will be prompted for a directory to use as the public root (default is "public"). Enter
build/bundled
orbuild/unbundled
(supports HTTP/2).build
contains everything your application needs to run. -
Edit firebase.json, change firebase name, and add
rewrites
section (see example firebase.json). -
Build
polymer build
-
Deploy
firebase deploy
The URL to your live site is listed in the output.