Skip to content

Instantly share code, notes, and snippets.

@MarkNewcomb1
Created October 3, 2018 19:11
Show Gist options
  • Select an option

  • Save MarkNewcomb1/5b331b19a921b905ec918f7f8770868e to your computer and use it in GitHub Desktop.

Select an option

Save MarkNewcomb1/5b331b19a921b905ec918f7f8770868e to your computer and use it in GitHub Desktop.
Deploying react app to firebase
// Log into firebase and create a project
// Make sure npm isn’t running anything any place in any terminal
// Change to your react app folder
*npm run build*
// creates a build folder and merges files into a compact build version
*firebase init*
// select hosting
// select your project
// *type build as your public directory*
// configure as single page app NO
// overwrite index.html NO
*firebase deploy*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment