2014-01-19 46 views
1

我的heroku應用程序未顯示在瀏覽器中,並且在查看日誌時我收到以下代碼。 Heroku應用程序似乎在運行,當我輸入命令「Heroku apps」時,所以我很困惑問題是什麼,我對Heroku不是很熟悉,所以最好保持答案相當簡單任何幫助都會很棒Heroku幫助 - 應用程序不在瀏覽器中顯示

FATAL -- : 
2014-01-19T15:24:23.828258+00:00 app[web.1]: ActionController::RoutingError (No 
route matches [GET] "/"): 
2014-01-19T15:24:23.827626+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act 
ivesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged' 
2014-01-19T15:24:23.828478+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rai 
lties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app' 
2014-01-19T15:24:23.829247+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act 
ionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' 
2014-01-19T15:24:23.829247+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rai 
lties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app' 
2014-01-19T15:24:23.829247+00:00 app[web.1]: ActionController::RoutingError (No 
route matches [GET] "/"): 
2014-01-19T15:24:23.829247+00:00 app[web.1]: I, [2014-01-19T15:24:23.825788 #2] 
INFO -- : Started GET "/" for 108.27.248.8 at 2014-01-19 15:24:23 +0000 
2014-01-19T15:24:23.828917+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act 
ivesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call' 
2014-01-19T15:24:23.829247+00:00 app[web.1]: 
2014-01-19T15:24:23.828478+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rac 
k-1.5.2/lib/rack/runtime.rb:17:in `call' 
2014-01-19T15:24:23.828478+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act 
ivesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged' 
2014-01-19T15:24:23.828258+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/ 
webrick/server.rb:295:in `block in start_thread' 
2014-01-19T15:24:23.828478+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act 
ionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call' 
2014-01-19T15:24:23.829581+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rac 
k-1.5.2/lib/rack/sendfile.rb:112:in `call' 
2014-01-19T15:24:23.829581+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rac 
k-1.5.2/lib/rack/runtime.rb:17:in `call' 
2014-01-19T15:24:23.829581+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act 
ivesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call' 
2014-01-19T15:24:23.829581+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rac 
k-1.5.2/lib/rack/methodoverride.rb:21:in `call' 
2014-01-19T15:24:23.829247+00:00 app[web.1]: 
2014-01-19T15:24:23.829581+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act 
ivesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged' 
2014-01-19T15:24:23.828917+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/ 
webrick/server.rb:295:in `block in start_thread' 
2014-01-19T15:24:23.828917+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rai 
lties-4.0.2/lib/rails/engine.rb:511:in `call' 
2014-01-19T15:24:23.828917+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rac 
k-1.5.2/lib/rack/lock.rb:17:in `call' 
2014-01-19T15:24:23.828917+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rac 
k-1.5.2/lib/rack/content_length.rb:14:in `call' 
2014-01-19T15:24:23.829792+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rac 
k-1.5.2/lib/rack/lock.rb:17:in `call' 
2014-01-19T15:24:23.829792+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rac 
k-1.5.2/lib/rack/content_length.rb:14:in `call' 
2014-01-19T15:24:23.829581+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rai 
lties-4.0.2/lib/rails/application.rb:97:in `call' 
2014-01-19T15:24:23.829581+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rai 
lties-4.0.2/lib/rails/engine.rb:511:in `call' 
2014-01-19T15:24:23.829247+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act 
ivesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged' 
2014-01-19T15:24:23.829792+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/ 
webrick/server.rb:295:in `block in start_thread' 
2014-01-19T15:24:23.829792+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/ 
webrick/httpserver.rb:94:in `run' 
2014-01-19T15:24:23.829247+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act 
ionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' 
2014-01-19T15:24:23.829247+00:00 app[web.1]: F, [2014-01-19T15:24:23.826691 #2] 
FATAL -- : 
2014-01-19T15:24:23.829792+00:00 app[web.1]: 
2014-01-19T15:24:23.829792+00:00 app[web.1]: 
2014-01-19T15:24:23.829581+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act 
ivesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged' 
2014-01-19T15:24:23.829581+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/act 
ionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call' 
2014-01-19T15:24:23.829581+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rai 
lties-4.0.2/lib/rails/rack/logger.rb:20:in `call' 


Omrails::Application.routes.draw do 
# The priority is based upon order of creation: first created -> highest priority. 
# See how all your routes lay out with "rake routes". 

# You can have the root of your site routed with "root" 
# root 'welcome#index' 

# Example of regular route: 
# get 'products/:id' => 'catalog#view' 

# Example of named route that can be invoked with purchase_url(id: product.id) 
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase 

# Example resource route (maps HTTP verbs to controller actions automatically): 
# resources :products 

# Example resource route with options: 
# resources :products do 
#  member do 
#  get 'short' 
#  post 'toggle' 
#  end 
# 
#  collection do 
#  get 'sold' 
#  end 
# end 

# Example resource route with sub-resources: 
# resources :products do 
#  resources :comments, :sales 
#  resource :seller 
# end 

# Example resource route with more complex sub-resources: 
# resources :products do 
#  resources :comments 
#  resources :sales do 
#  get 'recent', on: :collection 
#  end 
# end 

# Example resource route with concerns: 
# concern :toggleable do 
#  post 'toggle' 
# end 
# resources :posts, concerns: :toggleable 
# resources :photos, concerns: :toggleable 

# Example resource route within a namespace: 
# namespace :admin do 
#  # Directs /admin/products/* to Admin::ProductsController 
#  # (app/controllers/admin/products_controller.rb) 
#  resources :products 
# end 
end 
+0

您是否爲索引路由'/'設置了路由?類似於'root'static_pages#home'' –

+1

「ActionController :: RoutingError(沒有路由匹配[GET]」/「):」請添加您的routes.rb文件 – Pierre

+0

@Pierre - 我列出了 – eNN

回答

1

你沒有任何控制器或視圖,所以它試圖找到歡迎控制器,但它不存在。創建一個控制器並查看它並將其設置爲根路徑

相關問題