repo at:git@github.com:assafshomer / sample_app.git
Heroku日志也不提供任何信息(至少,我认为没有任何用处)
2013-05-25T22:11:26.070468+00:00 heroku[web.1]: Process exited with
status 0
2013-05-25T22:11:26.083572+00:00 heroku[web.1]: State changed from
starting to crashed
2013-05-25T22:13:09.372294+00:00 heroku[run.4121]: State changed from up
to complete
2013-05-25T22:13:09.357146+00:00 heroku[run.4121]: Process exited with
status 1
2013-05-25T22:13:50.829887+00:00 heroku[router]: at=error code=H10
desc="App crashed" method=GET path=/ host=devsampleapp.herokuapp.com
fwd="93.172.16.63" dyno= connect= service= status=503 bytes=
还没有出现rails控制台:
2013-05-26T06:41:34.942569+00:00 heroku[api]: Starting process with command `bin/rails console` by assafshomer@gmail.com
2013-05-26T06:41:38.312107+00:00 heroku[run.5325]: Awaiting client
2013-05-26T06:41:38.339816+00:00 heroku[run.5325]: Starting process with command `bin/rails console`
2013-05-26T06:41:39.112396+00:00 heroku[run.5325]: Client connection closed. Sending SIGHUP to all processes
2013-05-26T06:41:40.329832+00:00 heroku[run.5325]: Process exited with status 0
2013-05-26T06:41:40.357047+00:00 heroku[run.5325]: State changed from starting to complete
我提交了一张Heroku的支持票,但这只会在最早的星期二进行,而且我很想让这个“升级到rails4”已经工作了,所以,任何帮助解决这个谜团的人都会非常感激。
显然,重现的最佳方法是克隆repo并部署到heroku:)
谢谢!
Assaf Shomer(gmail的assafshomer)
答案 0 :(得分:15)
在rails4中,新添加或从不同位置(例如bin/rails
)移动了几个负责启动阶段的文件(bin/rake
,bin/bundle
和script/rails
)。
似乎您的申请中缺少这些内容。奇怪的是它确实在你的本地机器上工作但在heroku上没有 - 但是我试过并添加了它们。它似乎有效。
您只需运行rake rails:update:bin
即可创建它们。