Heroku推送拒绝 - ruby​​_executable_hooks:没有这样的文件或目录?

时间:2014-03-09 14:20:22

标签: ruby heroku sinatra

我正在向heroku部署一个简单的sinatra应用程序并面临这个问题。

-----> Installing dependencies using 1.5.2
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
       /usr/bin/env: ruby_executable_hooks: No such file or directory
       Bundler Output: /usr/bin/env: ruby_executable_hooks: No such file or directory
 !
 !     Failed to install gems via Bundler.
 !

 !     Push rejected, failed to compile Ruby app

To git@heroku.com:brick2web.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:brick2web.git'

请查看the github repo for this project

注意: 一切都在我的本地机器上完美运行。没有出现这些错误和命令

foreman start

正常启动服务器而没有任何问题。如何解决此问题,因为它阻止heroku编译我的应用程序。我认为有一些配置问题正在出现,有没有办法查看运行此应用程序的heroku机器并解决问题。 如果这有帮助,请找到命令“heroku logs”的输出

2014-03-09T18:49:59+00:00 heroku[slug-compiler]: Slug compilation finished
2014-03-09T18:50:07.187220+00:00 heroku[web.1]: Starting process with command `bundle exec ruby stream.rb -p 36533`
2014-03-09T18:50:08.102029+00:00 app[web.1]: /usr/bin/env: ruby_executable_hooks: No such file or directory
2014-03-09T18:50:09.368840+00:00 heroku[web.1]: Process exited with status 127
2014-03-09T18:50:09.380511+00:00 heroku[web.1]: State changed from starting to crashed
2014-03-09T18:50:09.381418+00:00 heroku[web.1]: State changed from crashed to starting
2014-03-09T18:50:11.793334+00:00 heroku[web.1]: Starting process with command `bundle exec ruby stream.rb -p 35440`
2014-03-09T18:50:13.229598+00:00 app[web.1]: /usr/bin/env: ruby_executable_hooks: No such file or directory
2014-03-09T18:50:14.665275+00:00 heroku[web.1]: Process exited with status 127

将shebang符号添加到主sinatra文件中也无济于事

#!/usr/bin/env ruby

0 个答案:

没有答案