0

我用推送更新了heroku上的rails应用程序,但是当我使用命令heroku打开我的命令提示符时

no such file or directory .heroku/client/vendor/gems/addressable-2.3.2/data/unicode.data(Errno::ENOENT)

不知道发生了什么。我做了 heroko 日志,我得到了一长串我不明白的奇怪反馈。无论如何,希望这一切都会有所帮助。有谁知道发生了什么?

这是我的heroku日志

2013-08-26T23:29:23+00:00 heroku[slug-compiler]: Slug compilation started
2013-08-26T23:30:40.856501+00:00 heroku[api]: Scale to web=1 by lanners.marshall
@yahoo.com
2013-08-26T23:30:41.479196+00:00 heroku[api]: Attach HEROKU_POSTGRESQL_GOLD reso
urce by lanners.marshall@yahoo.com
2013-08-26T23:30:41.517670+00:00 heroku[api]: Release v3 created by lanners.mars
hall@yahoo.com
2013-08-26T23:30:41.596604+00:00 heroku[api]: Add DATABASE_URL config by lanners
.marshall@yahoo.com
2013-08-26T23:30:41.622576+00:00 heroku[api]: Release v4 created by lanners.mars
hall@yahoo.com
2013-08-26T23:30:41.670403+00:00 heroku[api]: Deploy 6bdd211 by lanners.marshall
@yahoo.com
2013-08-26T23:30:41.698072+00:00 heroku[api]: Release v5 created by lanners.mars
hall@yahoo.com
2013-08-26T23:30:45.518833+00:00 heroku[web.1]: Starting process with command `b
in/rails server -p 39588 -e $RAILS_ENV`
2013-08-26T23:30:46.148345+00:00 app[web.1]: /usr/bin/env: ruby.exe: No such fil
e or directory
2013-08-26T23:30:47.474136+00:00 heroku[web.1]: Process exited with status 127
2013-08-26T23:30:47.484121+00:00 heroku[web.1]: State changed from starting to c
rashed
2013-08-26T23:30:47.484721+00:00 heroku[web.1]: State changed from crashed to st
arting
2013-08-26T23:30:51.551472+00:00 heroku[web.1]: Starting process with command `b
in/rails server -p 43747 -e $RAILS_ENV`
2013-08-26T23:30:53.341195+00:00 app[web.1]: /usr/bin/env: ruby.exe: No such fil
e or directory
2013-08-26T23:30:55.337892+00:00 heroku[web.1]: Process exited with status 127
2013-08-26T23:30:55.329904+00:00 heroku[web.1]: State changed from starting to c
rashed
2013-08-26T23:41:15.238982+00:00 heroku[web.1]: State changed from crashed to st
arting
2013-08-26T23:41:18.948180+00:00 heroku[web.1]: Starting process with command `b
in/rails server -p 28272 -e $RAILS_ENV`
2013-08-26T23:41:19.673459+00:00 app[web.1]: /usr/bin/env: ruby.exe: No such fil
e or directory
2013-08-26T23:41:21.166624+00:00 heroku[web.1]: State changed from starting to c
rashed
2013-08-26T23:41:21.182154+00:00 heroku[web.1]: Process exited with status 127
2013-08-26T23:41:29.185339+00:00 heroku[web.1]: Stopping process with SIGKILL
2013-08-26T23:41:29.185135+00:00 heroku[web.1]: Error R99 (Platform error) -> Fa
iled to launch the dyno within 10 seconds
2013-08-26T23:51:49.427744+00:00 heroku[web.1]: State changed from crashed to st
arting
2013-08-26T23:51:52.685493+00:00 heroku[web.1]: Starting process with command `b
in/rails server -p 24715 -e $RAILS_ENV`
2013-08-26T23:51:53.320123+00:00 app[web.1]: /usr/bin/env: ruby.exe: No such fil
e or directory
2013-08-26T23:51:54.877945+00:00 heroku[web.1]: Process exited with status 127
2013-08-26T23:51:54.895579+00:00 heroku[web.1]: State changed from starting to c
rashed
2013-08-27T00:02:12.823833+00:00 heroku[web.1]: State changed from crashed to st
arting
2013-08-27T00:02:17.454356+00:00 heroku[web.1]: Starting process with command `b
in/rails server -p 35817 -e $RAILS_ENV`
2013-08-27T00:02:18.536931+00:00 app[web.1]: /usr/bin/env: ruby.exe: No such fil
e or directory
2013-08-27T00:02:20.493992+00:00 heroku[web.1]: Process exited with status 127
2013-08-27T00:02:27.748278+00:00 heroku[web.1]: Stopping process with SIGKILL
2013-08-27T00:02:27.748030+00:00 heroku[web.1]: Error R99 (Platform error) -> Fa
iled to launch the dyno within 10 seconds
2013-08-27T00:12:27.719245+00:00 heroku[web.1]: State changed from crashed to st
arting
2013-08-27T00:12:30.128833+00:00 heroku[web.1]: Starting process with command `b
in/rails server -p 51549 -e $RAILS_ENV`
2013-08-27T00:12:31.578894+00:00 heroku[web.1]: State changed from starting to c
rashed
2013-08-27T00:12:31.542115+00:00 heroku[web.1]: Process exited with status 127
2013-08-27T00:12:30.563854+00:00 app[web.1]: /usr/bin/env: ruby.exe: No such fil
e or directory
2013-08-27T00:12:40.521830+00:00 heroku[web.1]: Error R99 (Platform error) -> Fa
iled to launch the dyno within 10 seconds
2013-08-27T00:12:40.522094+00:00 heroku[web.1]: Stopping process with SIGKILL
4

1 回答 1

1

阅读错误日志,然后进行 SO 搜索。赠品是ruby.exe。这是一个 Windows 可执行文件名。Heroku 运行 Linux,其中可执行文件不以.exe

要解决此问题,请在您的procfile中更改ruby.exeruby. 并在我们使用 unix 行尾时使用它。然后提交您的文件并重新推送。这篇文章有一些有用的信息,关于如何让 git 为你管理行尾约定。

于 2013-08-27T00:30:48.050 回答