The problem was with git add.I had forgotten to add the node_modules files.I closed the terminal and ran the set of commands given in the Getting started with Heroku and NodeJs[1] again.The application was successfully pushed onto the stack.
Asked
Active
Viewed 1,426 times
-3
-
what's the actual problem then? I've deployed multiple times node.js based applications on Heroku's PaaS with no trouble. Actually, last night I deployed my last work. Could you extend your question/problem? So I can give you an according answer... – Cristian Douce Jul 21 '13 at 18:38
1 Answers
1
Heroku will automatically detect a nodejs application if you include a package.json file in the root of your project. Ensure that package.json is added to your git project before pushing your project to Heroku.
Your nodejs application should be managed with NPM. For a complete working example see the Nodejs guide on Heroku:

practicalli-john
- 1,836
- 1
- 12
- 8