Heroku帮助 - 应用程序不在浏览器中显示

时间:2014-01-19 15:40:04

标签: ruby-on-rails heroku browser

我的heroku应用程序没有显示在浏览器中,当我查看日志时,我收到了以下代码。当我输入命令“Heroku apps”时,Heroku应用程序似乎正在运行,所以我对问题是什么感到困惑,我对Heroku不是很熟悉所以最好保持答案相当简单任何帮助都会很棒< / p>

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

1 个答案:

答案 0 :(得分:1)

你没有任何控制器或视图,所以它试图找到欢迎控制器,但它不存在。创建一个控制器并与其一起查看并将其设置为根路径