Created
October 3, 2018 19:11
-
-
Save MarkNewcomb1/5b331b19a921b905ec918f7f8770868e to your computer and use it in GitHub Desktop.
Deploying react app to firebase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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