Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEPLOYMENT TO HEROKU
- Step 1:
- Use the last exercise from last class (11-Stu-ReactRouter/Solved)
- Step 2:
- In the root directory, `cd client`, then `yarn install`
- Step 3:
- Then, `cd ..`
- `yarn install`
- Step 4:
- In terminal run mongod `sudo mongod`
- Run the app locally using `yarn start`
- If running okay locally, proceed to the next steps.
- Step 5:
- Create GitHub repository and add the files to the new repo.
- - go to github.com and create a new repository
- - on your terminal, `git clone NAME_OF_REPO`
- - `git add .` to add the files
- - `git commit -m "adding initial files to repo"`
- - `git push` to push to github
- Step 6
- In the command line (project root), `heroku create`
- Go to heroku.com and configured `add-ons`. Add the `mlab`
- Step 7
- - `yarn build`
- - `git add .` to add the files
- - `git commit -m "adding build to repo"`
- - `git push` to push to github
- In the command line, from step 6, `git push heroku master` (edited)
Add Comment
Please, Sign In to add comment