【发布时间】:2016-10-19 23:29:29
【问题描述】:
我正在尝试将我的应用程序部署到 heroku,但它要求我将更新后的 Gemfile.lock 添加到版本控制中。日志是:
remote: -----> Fetching set buildpack https://github.com/ello/heroku-buildpack-imagemagick... done
remote: -----> ImageMagick app detected
remote: -----> Install ImageMagick
remote: -----> Extracting ImageMagick /app/tmp/cache/imagemagick.tar.gz => /tmp/build_397f5ab6d29af054b826b2a1303ae32b/vendor
remote: -----> Writing policy file
remote: -----> Updating environment variables
remote: -----> Using set buildpack heroku/ruby
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.2.0
remote: -----> Installing dependencies using bundler 1.11.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: You are trying to install in deployment mode after changing
remote: your Gemfile. Run `bundle install` elsewhere and add the
remote: updated Gemfile.lock to version control.
remote: You have added to the Gemfile:
remote: * source:
它要求我添加更新的 Gemfile.lock,但是当我删除它并生成一个新的时仍然不起作用。我已经尝试过各种 S.O. 中提到的解决方案。问题,但没有一个对我有用。 另外,我已经上演并承诺了。
【问题讨论】:
-
看来您还没有上传所有部署过程的消息。除此之外,如果您可以添加heroku log,将更容易评估问题。
标签: ruby-on-rails ruby-on-rails-4 heroku heroku-toolbelt