简体   繁体   English

很抱歉,将Rails App部署到Heroku时出了点问题

[英]We're sorry, but something went wrong When Deploying Rails App to Heroku

My Rails 3 app is fully functional when running on my local dev environment. 在我的本地开发环境中运行时,我的Rails 3应用程序可以正常运行。 However, after I push to Heroku I get this cryptic error in red "We're sorry, but something went wrong" I did some research and tried the following steps with no luck: 但是,在我推送到Heroku之后,我得到了一个红色的“错误,我们很抱歉,但是出了点问题”这个隐秘的错误,我做了一些研究,并尝试了以下步骤,但是没有运气:

  1. I made sure sqlite3 was in a dev group and PostgreSQL was in prod. 我确保sqlite3在开发组中,而PostgreSQL在产品中。
  2. In my config/environment/prod.rb, I changed config.assets.compile from false to true 在我的config / environment / prod.rb文件中,我将config.assets.compilefalse更改为true
  3. After pushing to Heroku, I ran heroku run rake db:migrate , which executed successfully. 推送到Heroku之后,我运行了heroku run rake db:migrate ,该命令成功执行。
  4. I noticed that the precompile was failing during the push to Heroku so I precompiled locally via rake assets:precompile . 我注意到在推送到Heroku期间预编译失败,因此我通过rake assets:precompile在本地进行了rake assets:precompile
  5. When I run heroku ps , it shows that the dyno is up [web.1: up 2013/08/27 10:52:23 (~ 2m ago)] 当我运行heroku ps ,它表明测功机启动了[web.1: up 2013/08/27 10:52:23 (~ 2m ago)]
  6. Lastly, I reviewed the logs and see no sign of a failure or error. 最后,我查看了日志,没有发现任何故障或错误的迹象。

I included my log and gem files below as well as part of the results from running heroku logs --tail. 我在下面包括了我的日志和gem文件,以及运行heroku logs --tail的结果的一部分。 I appreciate any suggestions or other help. 我感谢任何建议或其他帮助。 Thanks 谢谢

tail -- logs 尾巴-原木

 Started GET "/" for 98.204.192.25 at 2013-08-27 19:54:28 +0000
 Processing by StoreController#index as HTML
 Completed 500 Internal Server Error in 18ms
 36m2013-08-27T19:54:28.623752+00:00 app[web.1]:←[0m
 ActionView::MissingTemplate (Missing template store/index,    application/index with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb,  :builder]}. Searched in: * "/app/app/views"* "/app/vendor/bundle/ruby/1.9.1/gems/devise-3.0.3/app/views"

# Gemfile
source 'https://rubygems.org'

ruby '1.9.3'

gem 'rails', '3.2.13'
gem 'bootstrap-sass', '2.3.2.0'
gem 'bcrypt-ruby', '3.0.1'
gem 'faker', '1.0.1' #used to make sample users with names and email
gem 'will_paginate', '3.0.3' #paginate functionality
gem "jquery-rails", "2.3.0"
gem 'devise'
gem 'turbolinks'
gem 'thin'

# Gems used only for assets and not required in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'therubyracer', :platforms => :ruby
  gem 'uglifier', '>= 1.0.3'
end

# Development only gems
group :development do
  gem 'annotate', '2.5.0'
end

# Dev and Test Gems
group :development, :test do
  gem 'sqlite3'
  gem 'rspec-rails', '2.11.0'
end

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

Heroku logs Heroku日志

$ heroku ps
=== web (1X): `bundle exec thin start -R config.ru -e $RAILS_ENV -p $PORT`
web.1: up 2013/08/27 10:52:23 (~ 2m ago)

$ heroku logs
←[36m2013-08-27T14:53:48.089286+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
←[36m2013-08-27T14:53:48.089286+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/streaming.rb:225:in `_render_template'
←[36m2013-08-27T14:53:48.089463+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
←[36m2013-08-27T14:53:48.089286+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/rendering.rb:16:in `render'
←[36m2013-08-27T14:53:48.089286+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
←[36m2013-08-27T14:53:48.089463+00:00 app[web.1]:←[0m   vendor/ruby-1.9.3/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
←[36m2013-08-27T14:53:48.089463+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/core_ext/benchmark.rb:5:in `ms'
←[36m2013-08-27T14:53:48.089463+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:39:in `render'
←[36m2013-08-27T14:53:48.089463+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
←[36m2013-08-27T14:53:48.089463+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
←[36m2013-08-27T14:53:48.089463+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
←[36m2013-08-27T14:53:48.089463+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
←[36m2013-08-27T14:53:48.090025+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:436:in `_run__4156855088543667456__process_action__706269566432664392__callbacks'
←[36m2013-08-27T14:53:48.090025+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/rendering.rb:10:in `process_action'
←[36m2013-08-27T14:53:48.089463+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
←[36m2013-08-27T14:53:48.089463+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:167:in `process_action'
←[36m2013-08-27T14:53:48.090025+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
←[36m2013-08-27T14:53:48.090025+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
←[36m2013-08-27T14:53:48.090025+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
←[36m2013-08-27T14:53:48.090025+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:17:in `process_action'
←[36m2013-08-27T14:53:48.090025+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
←[36m2013-08-27T14:53:48.090025+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/rescue.rb:29:in `process_action'
←[36m2013-08-27T14:53:48.090025+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
←[36m2013-08-27T14:53:48.090197+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
←[36m2013-08-27T14:53:48.090197+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
←[36m2013-08-27T14:53:48.090025+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
←[36m2013-08-27T14:53:48.090197+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
←[36m2013-08-27T14:53:48.090197+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
←[36m2013-08-27T14:53:48.090197+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
←[36m2013-08-27T14:53:48.090197+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:45:in `process'
←[36m2013-08-27T14:53:48.090197+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:121:in `process'
←[36m2013-08-27T14:53:48.090197+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
←[36m2013-08-27T14:53:48.090197+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal.rb:203:in `dispatch'
←[36m2013-08-27T14:53:48.090197+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_controller/metal.rb:246:in `block in action'
←[36m2013-08-27T14:53:48.090589+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:in `call'
←[36m2013-08-27T14:53:48.090589+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
←[36m2013-08-27T14:53:48.090589+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:36:in `call'
←[36m2013-08-27T14:53:48.090589+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
←[36m2013-08-27T14:53:48.090589+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
←[36m2013-08-27T14:53:48.090589+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
←[36m2013-08-27T14:53:48.090589+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:612:in `call'
←[36m2013-08-27T14:53:48.090589+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
←[36m2013-08-27T14:53:48.090589+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
←[36m2013-08-27T14:53:48.090589+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
←[36m2013-08-27T14:53:48.090775+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
←[36m2013-08-27T14:53:48.090775+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
←[36m2013-08-27T14:53:48.090775+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
←[36m2013-08-27T14:53:48.090775+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/head.rb:14:in `call'
←[36m2013-08-27T14:53:48.090775+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
←[36m2013-08-27T14:53:48.090775+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/flash.rb:242:in `call'
←[36m2013-08-27T14:53:48.090775+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
←[36m2013-08-27T14:53:48.090775+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
←[36m2013-08-27T14:53:48.090775+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/cookies.rb:341:in `call'
←[36m2013-08-27T14:53:48.090775+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/query_cache.rb:64:in `call'
←[36m2013-08-27T14:53:48.091150+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
←[36m2013-08-27T14:53:48.091150+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
←[36m2013-08-27T14:53:48.091150+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `_run__4096359245755012766__call__2028039068216007955__callbacks'
←[36m2013-08-27T14:53:48.091150+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
←[36m2013-08-27T14:53:48.091150+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
←[36m2013-08-27T14:53:48.091150+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
←[36m2013-08-27T14:53:48.091150+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
←[36m2013-08-27T14:53:48.091150+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
←[36m2013-08-27T14:53:48.091150+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
←[36m2013-08-27T14:53:48.091150+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
←[36m2013-08-27T14:53:48.091319+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/rack/logger.rb:32:in `call_app'
←[36m2013-08-27T14:53:48.091319+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in `block in call'
←[36m2013-08-27T14:53:48.091319+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/tagged_logging.rb:22:in `tagged'
←[36m2013-08-27T14:53:48.091319+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in `call'
←[36m2013-08-27T14:53:48.091319+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/request_id.rb:22:in `call'
←[36m2013-08-27T14:53:48.091319+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
←[36m2013-08-27T14:53:48.091319+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
←[36m2013-08-27T14:53:48.091319+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
←[36m2013-08-27T14:53:48.091319+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
←[36m2013-08-27T14:53:48.091319+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/static.rb:63:in `call'←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:479:in `call'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:79:in `catch'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:223:in `call'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:39:in `receive_data'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:79:in `pre_process'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:54:in `process'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connectioncontext.rb:51:in `call'.rb:63:in `call'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:479:in `call'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:79:in `catch'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:223:in `call'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:39:in `receive_data'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:79:in `pre_process'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:54:in `process'
←[36m2013-08-27T14:53:48.091655+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/connection.rb:81:in `block in pre_process'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:86:in `start'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/backends/base.rb:63:in `start'
←[36m2013-08-27T14:53:48.092315+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/server.rb:159:in `start'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
←[36m2013-08-27T14:53:48.091817+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
←[36m2013-08-27T14:53:48.092315+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
←[36m2013-08-27T14:53:48.092315+00:00 app[web.1]:←[0m   vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
←[36m2013-08-27T14:53:48.092315+00:00 app[web.1]:←[0m
←[36m2013-08-27T14:53:48.092315+00:00 app[web.1]:←[0m
←[33m2013-08-27T14:53:48.089155+00:00 heroku[router]:←[0m at=info method=GET path=/ host=fast-island-8704.herokuapp.com fwd="98.204.192.25" dyno=web.1 connect=1ms service=22ms status=500 bytes=643
←[33m2013-08-27T14:52:41.003446+00:00 heroku[router]:←[0m at=info method=GET path=/ host=fast-island-8704.herokuapp.com fwd="98.204.192.25" dyno=web.1 connect=1ms service=278ms status=500 bytes=643

I've fixed the formatting on your logs, but can't see the part that is causing the error. 我已经修复了您日志的格式,但看不到导致错误的部分。 It looks like your application is starting properly, but something is causing an error when you access the web page. 看起来您的应用程序正在正常启动,但是当您访问网页时出现了一些错误。 Try running heroku logs --tail , then watch the output as you request the page. 尝试运行heroku logs --tail ,然后在请求页面时观察输出。 Towards the top of the request in the logs, you should see the part of your application that is having an issue. 在日志的请求顶部,您应该看到应用程序中出现问题的部分。 It should start with app/... instead of vendor/bundle/... . 它应该以app/...开头,而不是vendor/bundle/...开头。 Once you have that, you (or I) can further diagnose the issue. 一旦有了这些,您(或我)就可以进一步诊断问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM