Guest User

Untitled

a guest
Nov 24th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. DEPLOYMENT TO HEROKU
  2.  
  3. Step 1:
  4. Use the last exercise from last class (11-Stu-ReactRouter/Solved)
  5.  
  6. Step 2:
  7. In the root directory, `cd client`, then `yarn install`
  8.  
  9. Step 3:
  10. Then, `cd ..`
  11. `yarn install`
  12.  
  13. Step 4:
  14. In terminal run mongod `sudo mongod`
  15. Run the app locally using `yarn start`
  16. If running okay locally, proceed to the next steps.
  17.  
  18. Step 5:
  19. Create GitHub repository and add the files to the new repo.
  20.  
  21. - go to github.com and create a new repository
  22. - on your terminal, `git clone NAME_OF_REPO`
  23. - `git add .` to add the files
  24. - `git commit -m "adding initial files to repo"`
  25. - `git push` to push to github
  26.  
  27. Step 6
  28.  
  29. In the command line (project root), `heroku create`
  30.  
  31. Go to heroku.com and configured `add-ons`. Add the `mlab`
  32.  
  33. Step 7
  34. - `yarn build`
  35. - `git add .` to add the files
  36. - `git commit -m "adding build to repo"`
  37. - `git push` to push to github
  38. In the command line, from step 6, `git push heroku master` (edited)
Add Comment
Please, Sign In to add comment