How to deploy on Heroku

  1. heroku create
  2. create any config variables (PORT, TOKEN, ACCESS KEYS, etc.)
  3. set up web version of your database (e.g. mlab for mongodb)
  4. Edit package.json file
    • move any devDependencies to dependencies
    • add any necessary scripts

    Screen Shot 2018-01-08 at 11.12.22 PM

  5. Modify code to account for both production and development.Screen Shot 2018-01-08 at 11.10.55 PM
  6. git add/commit
  7. git push heroku master
  8. heroku logs to debug


How to deploy on Heroku