Heroku突然拒绝了我的应用程序(env:bundle:没有这样的文件或目录)

时间:2014-02-04 03:09:47

标签: heroku deployment

我今天尝试部署我的应用程序,我的部署第一次被拒绝。

我的部署输出如下。我尝试了以下内容,结果没有变化:

  • 在Gemfile中没有Ruby版本进行部署
  • 在Gemfile中使用2.1.0进行部署
  • 使用https://github.com/heroku/heroku-buildpack-ruby.git
  • 上的自定义BUILDPACK_URL进行部署
  • 从其他分支部署
  • 从队友的机器部署
  • 回滚到上次成功部署的提交,更改自述文件中的一行,已提交并重新部署。

我昨晚成功部署了。我只对我要提交的新代码进行了HTML和CSS更改,因此自上次成功部署以来,应用程序设置中的任何内容都没有更改。

为什么Heroku现在会拒绝我的应用部署?

谢谢!

Fetching repository, done.
Counting objects: 11, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 496 bytes, done.
Total 6 (delta 5), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.5.2
Running: bundle install --without development:test --path vendor/bundle --binstubs    vendor/bundle/bin -j4 --deployment
env: bundle: No such file or directory
Bundler Output: env: bundle: No such file or directory
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app
To git@heroku.com:myapp.git
! [remote rejected] development -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:myapp.git'

1 个答案:

答案 0 :(得分:0)

Heroku放弃了对Rails 1.9的支持,这是在PATH中。我在丢弃PATH时遇到了一些麻烦,因为heroku在配置它的地方有一些黑客,但是不会丢弃(可能是因为它是默认值)。

所以我最终将PATH设置为

heroku config:set PATH=blah

然后取消它。

heroku config:remove PATH

这似乎已经卡住了。