“应用程序错误”部署到Heroku

时间:2013-08-29 02:58:15

标签: ruby-on-rails heroku

似乎无法想出这个,并尝试了我在这里找到的一些解决方案。

我的应用程序在本地运行正常,但在部署到Heroku时会抛出应用程序错误。

2013-08-29T02:26:16.045405+00:00 app[web.1]: /usr/bin/env: ruby.exe: No such file or directory
2013-08-29T02:26:17.753833+00:00 heroku[web.1]: Process exited with status 127
2013-08-29T02:26:21.377211+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 39412 -e $RAILS_ENV`
2013-08-29T02:26:22.781105+00:00 app[web.1]: /usr/bin/env: ruby.exe: No such file or     directory
2013-08-29T02:26:24.414525+00:00 heroku[web.1]: Process exited with status 127
2013-08-29T02:26:24.430021+00:00 heroku[web.1]: State changed from starting to crashed

值得注意的是,我有一个Procfile:

web: bundle exec rails server thin -p $PORT -e $RACK_ENV

非常感谢任何帮助!

1 个答案:

答案 0 :(得分:1)

heroku chokes识别windows ruby​​环境可执行文件。

bin / bundle bin / rake bin / rails都包含行#!/usr/bin/env ruby.exe

将其更改为

#!/usr/bin/env ruby

然后你应该能够部署