Skip to content

Instantly share code, notes, and snippets.

@bmitchinson
Created July 13, 2020 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmitchinson/e4e208aa19725dafd7a8210d327743e6 to your computer and use it in GitHub Desktop.
Save bmitchinson/e4e208aa19725dafd7a8210d327743e6 to your computer and use it in GitHub Desktop.

TODO: Move this to dev.to/bmitchinson

How to deploy an existing CRA app online in less than 60 seconds using your google account. Aftewards, custom domains can be applied through firebase.

  • npm i -g firebase-tools

  • firebase login

    • Login to your google account using the browser
  • firebase init

  • (arrow down to hosting, space to select hosting circle, enter to continue)

  • "Create a new project"

  • Enter a project id Ex "hot-and-cold-bmitchinson"

  • Project Name (Just press enter to reuse your project id)

  • "What would you like to use as your public dir" -> Enter build

  • "Configure as a SPA?" -> Yes (y)

  • npm run build

  • firebase deploy

Done!

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