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

 

Advertisements
How to deploy on Heroku

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s