-
Create an account with Heroku
-
Download node.js. Verify that node is installed on your machine with the
node
command in Terminal. If you don't get an error, it's installed! You can exit the node process with Ctrl+c. You can run the app locally using the commandnode app.js
-
Download and install the Heroku Toolbelt, which will give you the Heroku Command Line Interface.
-
Download this repo and navigate to the folder with Terminal
-
Run
npm install
to get all required libraries. Runnpm install through2
to install through2 module. -
Login to Heroku
heroku login
You will be prompted to enter your credentials.
- Setup a Git repository and your Heroku app
git init
git add .
git commit -m "init commit"
- Create the Heroku app
heroku create
- With your heroku app set-up, you can rename it.
heroku rename your-new-name
Your app will now be available at your-app-name.herokuapp.com
- Deploy your app
git push heroku master
- Open your app with the command:
heroku open
- You may need to deploy dynos to run your app if your app is asleep:
heroku ps:scale web=0
- If your app crashes, restart it:
heroku restart
- To view logs for your app (and to see any error messages):
heroku logs --tail
See more information on running a Node.js Heroku app here