1
我的heroku部署崩溃,出现以下错误。Heroku:bash:bundle:找不到命令
2012-12-12T17:16:18+00:00 app[web.1]: bash: bundle: command not found
2012-12-12T17:16:19+00:00 heroku[web.1]: Process exited with status 127
2012-12-12T17:16:19+00:00 heroku[web.1]: State changed from starting to crashed
Heroku的文档此错误是在https://devcenter.heroku.com/articles/changing-ruby-version-breaks-path描述我试过了,但是那也是没有帮助设置PATH和创业板的变量。
→ heroku config:add PATH=bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin
→ heroku config:add GEM_PATH=vendor/bundle/ruby/1.9.1
→ heroku run rake db:migrate
Running rake db:migrate attached to terminal... up, run.7130
bash: bundle: command not found
接下来,我想在我的Heroku应用程序设置的Ruby版本。这增加了slugsize。但应用程序仍然没有起来。
的Gemfile
ruby "1.9.2"
被推到Heroku的
-----> Using Ruby version: ruby-1.9.2
-----> Installing dependencies using Bundler version 1.2.2
的Heroku运行 “红宝石-v”
Running `ruby -v` attached to terminal... up, run.4483
ruby 1.9.2p320 (2012-04-20 revision 35421) [x86_64-linux]
可有人请咨询
谢谢尼尔的回应。本地我正在使用1.9.2。 1.9.2和1.9.3的Heroku设置似乎是相同的GEM_PATH:vendor/bundle/ruby/1.9.1 PATH:bin:vendor/bundle/ruby/1.9.1/bin:/ usr/local/bin:/usr/bin:/ bin 检查https://devcenter.heroku.com/articles/changing-ruby-version-breaks-path – Pykih
删除PATH和GEM_PATH配置变量并尝试,您不应该需要它们 –
I出于某种原因,我的slugignore中有/ vendor/bundle。这导致了这个问题。 – Pykih