一切都在問題中: 爲什麼phusion乘客在生產模式下要求factory_girl_rails gem?爲什麼phusion乘客在生產模式下要求factory_girl_rails gem?
我的Gemfile確實countains只有這一行約factory_girl_rails:錯誤屏幕上,他正在作爲生產服務器
group :development, :test do
# BUG version 4.2.0 needs to ass factory-girl in developpement https://github.com/thoughtbot/factory_girl_rails/issues/89
# Ressource : https://github.com/sporkrb/spork-rails
gem 'factory_girl_rails'
end
我的Phusion乘客確認:
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV and PASSENGER_ENV)
production
什麼是錯。
因爲解決方法是有害的把factory_girl_rails gem投入生產?