Skip to content

Instantly share code, notes, and snippets.

@danrasmuson
Last active August 29, 2015 14:07
Show Gist options
  • Save danrasmuson/e17fa2d70844cb5375b9 to your computer and use it in GitHub Desktop.
Save danrasmuson/e17fa2d70844cb5375b9 to your computer and use it in GitHub Desktop.
<!-- Notes on deployment on Heroku -->
<!-- view the whole guide here -->
<!-- https://devcenter.heroku.com/articles/getting-started-with-nodejs#set-up -->
heroku login
<!-- this will make a new app on heroku.com -->
heroku create
<!-- now make a 'Procfile' (no extension) -->
web: node index.js
<!-- see the console output -->
heroku logs --tail
<!-- define procfile -->
<!-- hwo will this be deoployed -->
web: node index.js
<!-- dynos how much speed -->
<!-- free should only do one -->
heroku ps
heroku ps:scale web=1
heroku ps:scale web=2
<!-- make sure to have a package.json -->
<!-- deploy locally -->
foreman start web
<!-- push to heroku -->
git push heroku master
<!-- see the app on heroku -->
heroku open
<!-- see heroku addons -->
heroku addons
<!-- this addon will show you better logs -->
heroku addons:add papertrail
heroku addons:open papertrail
<!-- see the console -->
heroku run node
heroku run bash
<!-- sensitive data here -->
<!-- Heroku lets you externalise configuration - storing data such an encryption keys or external resource addresses in config vars. -->
<!-- read more on link above -->
heroku config:set TIMES=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment