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-toolsThe
-gflag instructsnpmto install the package globally so that you can use thefirebasecommand from any directory. You may need to install the package withsudoprivileges. -
cdinto your project directory -
Inititalize the Firebase application
firebase initRunning 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/bundledorbuild/unbundled(supports HTTP/2).buildcontains everything your application needs to run. -
Edit firebase.json, change firebase name, and add
rewritessection (see example firebase.json). -
Build
polymer build -
Deploy
firebase deploy --project gdgportodevfest2016The URL to your live site is listed in the output.