Heroku Node JS应用程序错误 – 说它找不到我的主要模块

我有一个在heroku上运行的小型node.js应用程序。 一切都很好,直到今天。

我在我的一个.jade文件中做了一个小改动,然后重新部署。 现在我正在使用我的heroku日志:

2013-01-09T20:44:40+00:00 heroku[slugc]: Slug compilation started 2013-01-09T20:44:53+00:00 heroku[api]: Release v36 created by steve@donie.us 2013-01-09T20:44:53+00:00 heroku[api]: Deploy c299759 by steve@donie.us `013-01-09T20:44:55+00:00 heroku[web.1]: Starting process with command `node ./doniewebapp.js 2013-01-09T20:44:56+00:00 app[web.1]: at Function.Module._resolveFilename (module.js:338:15) 2013-01-09T20:44:56+00:00 app[web.1]: throw err; 2013-01-09T20:44:56+00:00 app[web.1]: at Function.Module._load (module.js:280:25) '013-01-09T20:44:56+00:00 app[web.1]: Error: Cannot find module '/app/doniewebapp.js 2013-01-09T20:44:56+00:00 app[web.1]: at process.startup.processNextTick.process._tickCallback (node.js:244:9) 2013-01-09T20:44:56+00:00 app[web.1]: 2013-01-09T20:44:56+00:00 app[web.1]: module.js:340 2013-01-09T20:44:56+00:00 app[web.1]: ^ 2013-01-09T20:44:56+00:00 app[web.1]: at Module.runMain (module.js:492:10) 2013-01-09T20:44:57+00:00 heroku[web.1]: Process exited with status 1 2013-01-09T20:44:54+00:00 heroku[slugc]: Slug compilation finished 2013-01-09T20:44:53+00:00 heroku[web.1]: State changed from crashed to starting 2013-01-09T20:44:57+00:00 heroku[web.1]: State changed from starting to crashed 

我已经确认doniewebapp.js文件仍然存在,我甚至可以运行应用程序,如果我使用

 heroku run node doniewebapp.js 

任何想法不胜感激。

我有同样的麻烦。

用命令`node ./doniewebapp.js < – 反引号不存在。

 $ vi Procfile :set fileformat=unix :w 

我已经解决了这个问题。