Skip to content

Instantly share code, notes, and snippets.

@mjgartendev
Last active May 25, 2018 01:46
Show Gist options
  • Save mjgartendev/ec9d1a60c507abf2e39161da6e821052 to your computer and use it in GitHub Desktop.
Save mjgartendev/ec9d1a60c507abf2e39161da6e821052 to your computer and use it in GitHub Desktop.
Steps are just copied from the firebase hosting page, but in markdown to follow along within a text editor

Google Firebase Hosting Steps

Install

Install Firebase tool globally

npm install -g firebase-tools

Deploy

Sign in to Google

firebase login

Initiate your project

firebase init

Add your static files to your deploy directory (default directory is /public)

Nuxt example

npm run generate

Deploy your website

firebase deploy

Connect Domain

Add domain

Domain

Enter the exact domain name you want people to see when they visit your site. It can be a domain (yourdomain.com) or a subdomain (app.yourdomain.com)

Redirect

Redirect to an existing website

Verify Ownership

Add the generated TXT records to your DNS provider to verify you own

Go live

Test it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment