在我的config/routes.rb
我有以下
Myapp::Application.routes.draw do
# We ask that you don't use the :as option here, as Refinery relies on it being the default of "refinery"
mount Refinery::Core::Engine, :at => '/'
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
root :to => 'refinery/blog/posts#index'
# See how all your routes lay out with "rake routes"
end
我跑进rake routes
了航站楼。然后承诺并推动。然后运行heroku run rake routes
,但是当我加载应用程序时,它仍然加载主页作为根。