-
Notifications
You must be signed in to change notification settings - Fork 6
Deploying to Heroku
Polina Soshnin edited this page Jan 26, 2016
·
2 revisions
- Heroku's Node.js tutorial
- Setup:
heroku login
- Deploy for the first time:
heroku create <appname>
- Push to Heroku: commit all changes, then
git push heroku master
. - View logs:
heroku logs --tail
- Define a Procfile. This is in the root of your application and explicitly declares what command(s) should be executed to start the app.
- Accessing prod server logs:
heroku login
heroku logs --tail --app matchjs
- Accessing our Database: Connecting locally:
heroku login
,heroku pg:psql --app matchjs