我在启动Heroku应用程序时遇到问题。我目前在Ruby on Rails教程第1章工作,我得到以下错误:
1. remote: remote: -----> Ruby app detected remote: -----> Compiling
Ruby/Rails remote: -----> Using Ruby version: ruby-2.0.0 remote:
-----> Installing dependencies using bundler 1.9.7 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: * pg (= 0.17.1) remote:
* rails_12factor (= 0.0.2) remote: Bundler Output: 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: remote:
You have added to the Gemfile: remote: * pg (= 0.17.1)
remote: * rails_12factor (= 0.0.2) remote: ! remote: !
Failed to install gems via Bundler. remote: ! remote: remote: !
Push rejected, failed to compile Ruby app remote: remote: Verifying
deploy... remote: remote: ! Push rejected to stark-dusk-2366.
我是一个新手,不太了解文件结构或我应该使用的命令来解决这个问题。
是否按照错误提示运行bundle install ?发生了什么事?另外,看一看Heroku关于设置Rails的指南,它对我帮助很大。