0

在我的本地主机上,我的应用程序运行良好。当我访问资源页面时,在生产服务器 (Heroku) 上:http://startupcrawler.com/startups我收到 500 错误。

这是我的路线.rb:

StartupcrawlerRuby::Application.routes.draw do
  resources :startups
  get "home/index"
  root to: 'home#index'
end

在我的生产服务器上,这是我运行时得到的rake routes

      Prefix Verb   URI Pattern                  Controller#Action
    startups GET    /startups(.:format)          startups#index
             POST   /startups(.:format)          startups#create
 new_startup GET    /startups/new(.:format)      startups#new
edit_startup GET    /startups/:id/edit(.:format) startups#edit
     startup GET    /startups/:id(.:format)      startups#show
             PATCH  /startups/:id(.:format)      startups#update
             PUT    /startups/:id(.:format)      startups#update
             DELETE /startups/:id(.:format)      startups#destroy
  home_index GET    /home/index(.:format)        home#index
        root GET    /    

还有什么我应该检查来解决这个问题吗?

4

1 回答 1

0

在项目目录中运行heroku logs -t并尝试访问您的资源。

于 2013-04-19T22:19:51.333 回答