【发布时间】:2013-07-25 02:09:02
【问题描述】:
我正在尝试在 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
我相信它是因为这个而修复的。
【问题讨论】:
标签: heroku coffeescript cloud-hosting spine.js