所以我在向Heroku运行时遇到了问题
git push heroku master
它开始推送,然后因此错误而失败
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
NameError: uninitialized constant Devise
/tmp/build_e47e5acc3405b13038fee9893d25b35a/config/initializers/devise.rb:3:in `<top (required)>'
这是我的宝石文件
gem 'rails', '4.2.4'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'spring', group: :development
gem 'byebug', group: :development
gem 'web-console', '~> 2.0', group: :development
gem 'bootstrap-sass', '~> 3.3.5.1'
gem 'devise', '~> 3.5.2'
gem 'paperclip', '~> 4.3.1'
gem 'aws-sdk', '< 2.0'
gem 'jquery-turbolinks'
gem 'masonry-rails', '~> 0.2.4'
gem 'will_paginate', '~> 3.0.7'
gem 'will_paginate-bootstrap', '~> 1.0.1'
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
end
看起来Devise是罪魁祸首,我是否必须将Devise添加到&#34;集团:生产做&#34;?我还没有将它分配给任何特定的组,但它在Gemfile中。
谢谢你们。
编辑:我已添加&#34;设计&#34; to:生产做,结果仍然相同。