0
我想在heroku上运行一个应用程序。 虽然一旦启动,应用程序崩溃。日志显示此:Heroku部署 - 找不到命令
2013-07-20T20:06:20.086425+00:00 heroku[web.1]: State changed from crashed to starting
2013-07-20T20:06:27.769210+00:00 heroku[web.1]: Starting process with command `serveup ./public`
2013-07-20T20:06:28.888722+00:00 app[web.1]: bash: serveup: command not found
2013-07-20T20:06:30.942655+00:00 heroku[web.1]: Process exited with status 127
2013-07-20T20:06:30.973063+00:00 heroku[web.1]: State changed from starting to crashed
我Procfile包含此:web: serveup ./public
这个命令应该是工作,因为它通过已经运行在Heroku这个程序的人提供的。有什么可能导致这种情况的建议?
编辑 serveup存在于node_modules/serveup中,并且由npm install进行安装。
更新
我不得不部署应用程序之前添加以下命令:
heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs
我相信这是因为这个固定。
只是好奇,如果你知道什么设置环境变量相对于这个问题。它最终是否修改了PATH,修改了服务器安装位置,修改了Procfile中指定的位置或其他内容?顺便说一句,谢谢你的接受。在这种情况下,这是慷慨的。 –