在git推送到Heroku我得到“错误:没有这样的文件或目录”

时间:2012-04-22 01:08:48

标签: javascript web-services debugging node.js heroku

我有一个项目,我可以在本地运行,似乎没有任何问题推向Heroku,但随后崩溃。

这是我在进行git推送时所看到的。

  generic-pool@1.0.9 ./node_modules/generic-pool 
       restler@0.2.5 ./node_modules/restler 
       coffee-script@1.2.0 ./node_modules/coffee-script 
       express@2.5.9 ./node_modules/express 
       ├── qs@0.4.2
       ├── mime@1.2.4
       ├── mkdirp@0.3.0
       └── connect@1.8.7
       generic-pool@1.0.9 /tmp/build_wjuqoswapf7n/node_modules/generic-pool
       coffee-script@1.2.0 /tmp/build_wjuqoswapf7n/node_modules/coffee-script
       express@2.5.9 /tmp/build_wjuqoswapf7n/node_modules/express
       connect@1.8.7 /tmp/build_wjuqoswapf7n/node_modules/express/node_modules/connect
       qs@0.4.2 /tmp/build_wjuqoswapf7n/node_modules/express/node_modules/qs
       mime@1.2.4 /tmp/build_wjuqoswapf7n/node_modules/express/node_modules/mime
       formidable@1.0.9 /tmp/build_wjuqoswapf7n/node_modules/express/node_modules/connect/node_modules/formidable
       mkdirp@0.3.0 /tmp/build_wjuqoswapf7n/node_modules/express/node_modules/mkdirp
       restler@0.2.5 /tmp/build_wjuqoswapf7n/node_modules/restler
       Dependencies installed
-----> Discovering process types
       Procfile declares types -> web
-----> Compiled slug size is 4.0MB
-----> Launching... done, v22
       http://glowing-mist-2689.herokuapp.com deployed to Heroku

这是我在进行heroku日志时看到的内容。

2012-04-22T01:04:05+00:00 heroku[slugc]: Slug compilation finished
2012-04-22T01:04:08+00:00 heroku[web.1]: Starting process with command `node run.js `
2012-04-22T01:04:08+00:00 app[web.1]: Error: No such file or directory - node run.js 
2012-04-22T01:04:09+00:00 heroku[web.1]: Process exited with status 0
2012-04-22T01:04:10+00:00 heroku[web.1]: State changed from starting to crashed

在Procfile中web: node run.js

可能是什么问题?有没有办法可以检查远程目录中是否存在run.js?

0 个答案:

没有答案