最近由bootstrap_and_customization样式表更新,更改在本地生效,但当推送到Heroku时,它们无法正常工作。所以我将我的gemfile更新为更新的gem'bootstrap-sass',然后推送到Heroku,但仍然无效。现在我收到一个heroku应用程序错误屏幕。
source 'http://rubygems.org'
gem 'rails', '3.2.12'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jquery-turbolinks'
gem 'devise'
gem 'simple_form'
gem "paperclip", "~> 3.4.2"
gem 'aws-sdk'
gem 'faker'
gem 'sass-rails', '~> 3.2.3'
gem 'bootstrap-sass'
gem 'masonry-rails', '~> 0.2.0'
gem 'will_paginate', '~> 3.0'
gem 'will_paginate-bootstrap'
group :production do
gem 'pg'
gem 'rails_12factor'
end
group :development, :test do
gem 'sqlite3'
end
group :assets do
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
Ran heroku logs --tails
2014-02-20T23:09:18.552475+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 29699`
2014-02-20T23:09:22.858644+00:00 app[web.1]: => Booting WEBrick
2014-02-20T23:09:22.858644+00:00 app[web.1]: => Rails 3.2.12 application starting in production on http://0.0.0.0:29699
2014-02-20T23:09:22.858644+00:00 app[web.1]: => Call with -d to detach
2014-02-20T23:09:22.858644+00:00 app[web.1]: => Ctrl-C to shutdown server
2014-02-20T23:09:22.858644+00:00 app[web.1]: Connecting to database specified by DATABASE_URL
2014-02-20T23:09:23.400620+00:00 app[web.1]: Exiting
2014-02-20T23:09:23.401492+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/devise-3.2.3/lib/devise/rails/routes.rb:481:in `raise_no_secret_key': Devise.secret_key was not set. Please add the following to your Devise initializer: (RuntimeError)
2014-02-20T23:09:23.401492+00:00 app[web.1]:
2014-02-20T23:09:23.401492+00:00 app[web.1]: config.secret_key = '80516ce47f5fee3fd02b573d96593e34c416617ad9fb4c948f073130edb859d9a264929e9dce0311c50fb5a6dcb07ec998cab49d5bf8beeb0f81772ce3112e89'
2014-02-20T23:09:23.401492+00:00 app[web.1]:
2014-02-20T23:09:23.401492+00:00 app[web.1]: Please ensure you restarted your application after installing Devise or setting the key.
2014-02-20T23:09:23.401492+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/devise-3.2.3/lib/devise/rails/routes.rb:206:in `devise_for'
2014-02-20T23:09:23.401492+00:00 app[web.1]: from /app/config/routes.rb:6:in `block in <top (required)>'
2014-02-20T23:09:23.401492+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec'
2014-02-20T23:09:23.401492+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:282:in `eval_block'
2014-02-20T23:09:23.401492+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.12/lib/action_dispatch/routing/route_set.rb:260:in `draw'
2014-02-20T23:09:23.401712+00:00 app[web.1]: from /app/config/routes.rb:1:in `<top (required)>'
2014-02-20T23:09:23.401712+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `load'
2014-02-20T23:09:23.401712+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `block in load'
2014-02-20T23:09:23.401712+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
2014-02-20T23:09:23.401712+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:245:in `load'
2014-02-20T23:09:23.401712+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
2014-02-20T23:09:23.401712+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/application/routes_reloader.rb:40:in `each'
2014-02-20T23:09:23.401712+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/application/routes_reloader.rb:40:in `load_paths'
2014-02-20T23:09:23.401712+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/application/routes_reloader.rb:16:in `reload!'
2014-02-20T23:09:23.401712+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/application.rb:108:in `reload_routes!'
2014-02-20T23:09:23.401903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/devise-3.2.3/lib/devise/rails.rb:14:in `block in <class:Engine>'
2014-02-20T23:09:23.401903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:34:in `call'
2014-02-20T23:09:23.401903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
2014-02-20T23:09:23.401903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
2014-02-20T23:09:23.401903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:42:in `each'
2014-02-20T23:09:23.401903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
2014-02-20T23:09:23.401903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/application/finisher.rb:52:in `block in <module:Finisher>'
2014-02-20T23:09:23.401903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `instance_exec'
2014-02-20T23:09:23.401903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/initializable.rb:30:in `run'
2014-02-20T23:09:23.401903+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-02-20T23:09:23.402535+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `each'
2014-02-20T23:09:23.402535+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/initializable.rb:54:in `run_initializers'
2014-02-20T23:09:23.402535+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/application.rb:136:in `initialize!'
2014-02-20T23:09:23.402535+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-02-20T23:09:23.402535+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-02-20T23:09:23.402535+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
2014-02-20T23:09:23.402535+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'
2014-02-20T23:09:23.402535+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
2014-02-20T23:09:23.402535+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
2014-02-20T23:09:23.402535+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2014-02-20T23:09:23.402718+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2014-02-20T23:09:23.402718+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2014-02-20T23:09:23.402718+00:00 app[web.1]: from /app/config.ru:in `new'
2014-02-20T23:09:23.402718+00:00 app[web.1]: from /app/config.ru:in `<main>'
2014-02-20T23:09:23.402718+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
2014-02-20T23:09:23.402718+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
2014-02-20T23:09:23.402718+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
2014-02-20T23:09:23.402718+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/commands/server.rb:46:in `app'
2014-02-20T23:09:23.402718+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
2014-02-20T23:09:23.402718+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
2014-02-20T23:09:23.403089+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/commands/server.rb:70:in `start'
2014-02-20T23:09:23.403089+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/commands.rb:55:in `block in <top (required)>'
2014-02-20T23:09:23.403089+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/commands.rb:50:in `tap'
2014-02-20T23:09:23.403089+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.12/lib/rails/commands.rb:50:in `<top (required)>'
2014-02-20T23:09:23.403089+00:00 app[web.1]: from script/rails:6:in `require'
2014-02-20T23:09:23.403089+00:00 app[web.1]: from script/rails:6:in `<main>'
2014-02-20T23:09:24.637546+00:00 heroku[web.1]: Process exited with status 1
2014-02-20T23:09:24.662296+00:00 heroku[web.1]: State changed from starting to crashed