Heroku push被拒绝-ruby_可执行文件_挂钩:没有这样的文件或目录?
我正在向heroku部署一个简单的sinatra应用程序,并面临这个问题Heroku push被拒绝-ruby_可执行文件_挂钩:没有这样的文件或目录?,ruby,heroku,sinatra,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
-----> 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'
请看一看
注:
在我的本地机器上,一切都很完美。所有这些错误都不会发生,并且命令
foreman start
正常启动服务器,无任何问题。我如何解决这个问题,因为它阻止heroku编译我的应用程序。我认为出现了一些配置问题,是否有办法检查运行此应用程序的heroku机器并解决问题。
如果这有助于查找命令“heroku logs”的输出
将shebang符号添加到主sinatra文件也没有帮助
#!/usr/bin/env ruby
#!/usr/bin/env ruby