我今天尝试部署我的应用程序,我的部署第一次被拒绝。
我的部署输出如下。我尝试了以下内容,结果没有变化:
我昨晚成功部署了。我只对我要提交的新代码进行了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'
答案 0 :(得分:0)
Heroku放弃了对Rails 1.9的支持,这是在PATH中。我在丢弃PATH时遇到了一些麻烦,因为heroku在配置它的地方有一些黑客,但是不会丢弃(可能是因为它是默认值)。
所以我最终将PATH设置为
heroku config:set PATH=blah
然后取消它。
heroku config:remove PATH
这似乎已经卡住了。