我有一个小的node.js应用程序在heroku运行。在今天之前一切都很好。
我在我的.jade文件中做了一个小的改变并重新部署。现在我在我的英雄日志中得到这个:
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
我已经解决了这个问题。