Deploy Nodejs + Dynamo DB application at Heroku

I am sure you have seen N number of blogs, so far on this topic. However, in my recent attempts to deploy this application, I found couple of bottlenecks.

Image for post
Image for post

I recommend you to read below mentioned blogs,
2. heroku docs

Assuming you have your code on git repository.

Make sure you change directory to root application

You will be prompted with username & password. Proceed to enter

(Linux/ Mac OSX) touch Procfile
Add this line to Procfile document web: node server.js

Open package.json in your application root directory. Add below lines at {scripts} section
“start”: “node server.js”
☞ : Make sure you have your server.js at {“main”} section

heroku create

git push heroku master

heroku apps admin dashboard in

Image for post
Image for post

Restart your application to reflect the changes.


a) Don’t mention any fixed port in your node application

Happy exploration.

Written by

CTO || Cloud and Distributed Systems Specialist

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store