Ruby on rails heroku push factory\u girl\u rails捆绑包安装错误

Ruby on rails heroku push factory\u girl\u rails捆绑包安装错误,ruby-on-rails,git,heroku,bundle,factory-bot,Ruby On Rails,Git,Heroku,Bundle,Factory Bot,我正在尝试将我的应用程序推送到heroku。我键入git push heroku,它将返回以下内容: git push heroku Counting objects: 55, done. Compressing objects: 100% (35/35), done. Writing objects: 100% (36/36), 10.30 KiB, done. Total 36 (delta 16), reused 0 (delta 0) -----> Ruby app detect

我正在尝试将我的应用程序推送到heroku。我键入git push heroku,它将返回以下内容:

git push heroku
Counting objects: 55, done.
Compressing objects: 100% (35/35), done.
Writing objects: 100% (36/36), 10.30 KiB, done.
Total 36 (delta 16), reused 0 (delta 0)

-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.3.2
   Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
   You are trying to install in deployment mode after changing
   your Gemfile. Run `bundle install` elsewhere and add the
   updated Gemfile.lock to version control.
   You have deleted from the Gemfile:
   * factory_girl_rails (= 4.2.1)
   Bundler Output: You are trying to install in deployment mode after changing
   your Gemfile. Run `bundle install` elsewhere and add the
   updated Gemfile.lock to version control.

   You have deleted from the Gemfile:
   * factory_girl_rails (= 4.2.1)
 !
 !     Failed to install gems via Bundler.
 !

 !     Push rejected, failed to compile Ruby app

To git@heroku.com:appname.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:appname.git'
我已经多次将factory_girl_rails添加和删除到gemfile中,并随它一起运行bundle安装

我试着按照它给出的方向去做,但我无法让它工作

我不确定问题出在哪里,但不会推到heroku身上

有人能帮忙吗

这是我的档案:

source 'https://rubygems.org'
ruby '2.0.0'
#ruby-gemset=railstutorial_rails_4_0

gem 'rails', '4.0.1'
gem 'bootstrap-sass', '2.3.2.0'
gem 'devise'

group :development, :test do
  gem 'sqlite3', '1.3.8'
  gem 'rspec-rails', '2.13.1'
end

group :test do
  gem 'selenium-webdriver', '2.35.1'
  gem 'capybara', '2.1.0'
  gem 'factory_girl_rails', '4.2.1'
end

gem 'sass-rails', '4.0.1'
gem 'uglifier', '2.1.1'
gem 'coffee-rails', '4.0.1'
gem 'jquery-rails', '3.0.4'
gem 'turbolinks', '1.1.1'
gem 'jbuilder', '1.0.2'

group :doc do
  gem 'sdoc', '0.3.20', require: false
end

group :production do
  gem 'pg', '0.15.1'
  gem 'rails_12factor', '0.0.2'
end

这就是我的Gemfile中的factory\u girl\u rails的外观。

我通过注释解决了这个问题

config.force_ssl = true
这在config/environments/production.rb文件中


知道这导致错误的原因吗?

我在config/environments/production.rb文件中注释掉了config.force_ssl=true,它似乎可以工作。有人知道为什么会这样吗?你的GEM文件中的factory_girl是否在开发/测试组中?你应该把你的文件的内容添加到问题中。你做了错误所要求的吗<代码>捆绑安装本地?这将更新您的Gemfile.lock。将新的提交给Git,Git push应该会修复它。如果没有,您可以尝试的另一个选项是
git push heroku-f
强制更新。