0

Windows 7,今天从 railsinstaller.org 重新安装了最新的 rails 版本。“heroku push”成功了。数据库迁移成功。“heroku open”给出“您要查找的页面不存在”

我在使用 Rails 4 之前已经部署过,没有任何问题。就是今天。

请帮忙!

谢谢

日志:

2013-08-23T21:15:17.504964+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2013-08-23T21:15:17.504964+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2013-08-23T21:15:17.504807+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:38:in `call_app'
2013-08-23T21:15:17.504807+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `call'
2013-08-23T21:15:17.504964+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2013-08-23T21:15:17.505102+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2013-08-23T21:15:17.504964+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:97:in `call'
2013-08-23T21:15:17.504964+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2013-08-23T21:15:17.504964+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2013-08-23T21:15:17.505102+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2013-08-23T21:15:17.504964+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2013-08-23T21:15:17.504964+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2013-08-23T21:15:17.504964+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:511:in `call'
2013-08-23T21:15:17.505102+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2013-08-23T21:15:17.505102+00:00 app[web.1]: 
2013-08-23T21:15:17.723887+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=guarded-gorge-3135.herokuapp.com fwd="162.195.72.6" dyno=web.1 connect=1ms service=6ms status=200 bytes=0
2013-08-23T22:20:12.963327+00:00 heroku[web.1]: Idling
2013-08-23T22:20:14.362146+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2013-08-23T22:20:14.598243+00:00 app[web.1]: [2013-08-23 22:20:14] FATAL SignalException: SIGTERM
2013-08-23T22:20:14.598243+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in `select'
2013-08-23T22:20:14.598243+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in `block in start'
2013-08-23T22:20:14.598243+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:160:in `start'
2013-08-23T22:20:14.598243+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:14:in `run'
2013-08-23T22:20:14.598243+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:84:in `start'
2013-08-23T22:20:14.598243+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
2013-08-23T22:20:14.598462+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
2013-08-23T22:20:14.598462+00:00 app[web.1]:    bin/rails:4:in `require'
2013-08-23T22:20:14.598462+00:00 app[web.1]: [2013-08-23 22:20:14] INFO  WEBrick::HTTPServer#start done.
2013-08-23T22:20:14.598243+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
2013-08-23T22:20:14.598243+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:264:in `start'
2013-08-23T22:20:14.598243+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:32:in `start'
2013-08-23T22:20:14.598462+00:00 app[web.1]: [2013-08-23 22:20:14] INFO  going to shutdown ...
2013-08-23T22:20:14.598462+00:00 app[web.1]:    bin/rails:4:in `<main>'
2013-08-23T22:20:14.598462+00:00 app[web.1]: Exiting
2013-08-23T22:20:15.813174+00:00 heroku[web.1]: Process exited with status 143
2013-08-23T22:20:15.831103+00:00 heroku[web.1]: State changed from up to down
2013-08-23T22:24:29.867171+00:00 heroku[web.1]: State changed from down to starting
2013-08-23T22:24:29.866819+00:00 heroku[web.1]: Unidling
2013-08-23T22:24:34.878609+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 38733 -e $RAILS_ENV`
2013-08-23T22:24:37.305692+00:00 app[web.1]: [2013-08-23 22:24:37] INFO  ruby 2.0.0 (2013-06-27) [x86_64-linux]
2013-08-23T22:24:37.305692+00:00 app[web.1]: [2013-08-23 22:24:37] INFO  WEBrick 1.3.1
2013-08-23T22:24:37.305872+00:00 app[web.1]: [2013-08-23 22:24:37] INFO  WEBrick::HTTPServer#start: pid=2 port=38733
2013-08-23T22:24:37.368038+00:00 heroku[web.1]: State changed from starting to up
2013-08-23T22:24:37.956733+00:00 app[web.1]: => Rails 4.0.0 application starting in production on http://0.0.0.0:38733
2013-08-23T22:24:37.956733+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-08-23T22:24:37.956733+00:00 app[web.1]: => Booting WEBrick
2013-08-23T22:24:37.956733+00:00 app[web.1]: => Run `rails server -h` for more startup options
2013-08-23T22:24:37.956733+00:00 app[web.1]: Started GET "/" for 162.195.72.6 at 2013-08-23 22:24:37 +0000
2013-08-23T22:24:37.956733+00:00 app[web.1]: Started GET "/" for 162.195.72.6 at 2013-08-23 22:24:37 +0000
2013-08-23T22:24:51.915852+00:00 heroku[router]: at=info method=GET path=/ host=guarded-gorge-3135.herokuapp.com fwd="162.195.72.6" dyno=web.1 connect=3ms service=13967ms status=404 bytes=1351
2013-08-23T22:24:51.914222+00:00 app[web.1]: 
2013-08-23T22:24:51.914222+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2013-08-23T22:24:51.914222+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `block in call'
2013-08-23T22:24:51.914222+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/"):
2013-08-23T22:24:51.914222+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:25:in `tagged'
2013-08-23T22:24:51.914222+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `call'
2013-08-23T22:24:51.914420+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2013-08-23T22:24:51.914420+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2013-08-23T22:24:51.914420+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2013-08-23T22:24:51.914420+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:511:in `call'
2013-08-23T22:24:51.914222+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
2013-08-23T22:24:51.914222+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:38:in `call_app'
2013-08-23T22:24:51.914420+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:97:in `call'
2013-08-23T22:24:51.914420+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2013-08-23T22:24:51.914574+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2013-08-23T22:24:51.914420+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2013-08-23T22:24:51.914574+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2013-08-23T22:24:51.914574+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2013-08-23T22:24:51.914574+00:00 app[web.1]: 
2013-08-23T22:24:51.914420+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2013-08-23T22:24:51.914574+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
2013-08-23T22:24:51.914574+00:00 app[web.1]: 
2013-08-23T22:24:51.914222+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `tagged'
2013-08-23T22:24:51.914420+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2013-08-23T22:24:51.914222+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `block in tagged'
2013-08-23T22:24:51.914574+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/"):
2013-08-23T22:24:51.914966+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `call'
2013-08-23T22:24:51.914966+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2013-08-23T22:24:51.914966+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2013-08-23T22:24:51.915113+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2013-08-23T22:24:51.914966+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2013-08-23T22:24:51.914574+00:00 app[web.1]: 
2013-08-23T22:24:51.914420+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2013-08-23T22:24:51.914574+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2013-08-23T22:24:51.914966+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `block in tagged'
2013-08-23T22:24:51.914966+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2013-08-23T22:24:51.915113+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:511:in `call'
2013-08-23T22:24:51.915113+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2013-08-23T22:24:51.915113+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2013-08-23T22:24:51.915113+00:00 app[web.1]: 
2013-08-23T22:24:51.915113+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:97:in `call'
2013-08-23T22:24:51.914966+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `block in call'
2013-08-23T22:24:51.914574+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:38:in `call_app'
2013-08-23T22:24:51.914966+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:25:in `tagged'
2013-08-23T22:24:51.915113+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2013-08-23T22:24:51.915113+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2013-08-23T22:24:51.914966+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2013-08-23T22:24:51.915113+00:00 app[web.1]:   vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2013-08-23T22:24:51.914966+00:00 app[web.1]:   vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `tagged'
2013-08-23T22:24:51.915113+00:00 app[web.1]: 
2013-08-23T22:24:52.238356+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=guarded-gorge-3135.herokuapp.com fwd="162.195.72.6" dyno=web.1 connect=4ms service=7ms status=304 bytes=0
4

1 回答 1

1

看起来你没有错误 - 只是你没有为根设置路由。IE。像这样的东西routes.rb root 'home#index'

PS。请注意,Rails 4 在生产中做了一些奇怪的事情 - 它的行为与开发模式不同,并且需要定义明确的根路由。

于 2013-08-24T10:20:43.050 回答