Skip to content

Instantly share code, notes, and snippets.

@JacobWay
Created March 14, 2017 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JacobWay/47c0f1b02e7fb6ab835fbc5b81ff59f9 to your computer and use it in GitHub Desktop.
Save JacobWay/47c0f1b02e7fb6ab835fbc5b81ff59f9 to your computer and use it in GitHub Desktop.
Deploy node.js application on Heroku

Instruction

Set up

Prepare the app

Deploy the app

Create a Heroku app with a name

  • heroku app your-app-name

Push your code to heroku repository

  • heroku push heroku master

View logs

Define a Procfile

Scale the app

Declare app dependencies

Run the app locally

Push local changes

Provision addons

Start a console

Define config vars

Provision a database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment