2012-04-01 68 views
1

我想學習使用Rails教程的Ruby on Rails。早些時候,我得到了一切正常工作,但自從Rails更新到3.2,我已經嘗試過再次這樣做。Rails:路由在本地工作,而不是在Heroku

我到了這裏,我正在嘗試爲我的靜態頁面自定義路由。

http://ruby.railstutorial.org/chapters/filling-in-the-layout?version=3.2#sec:rails_routes

在本地,它的工作原理,但是當我推到Heroku的,我得到即使我已經刪除了公衆默認的Rails頁/ index.html的

沒有人有任何想法的問題可能是什麼?

回答

1

做:

git add -u . 
git commit -m "removing public/index.html file from git repo" 
git push heroku master 

,將修復它

+1

謝謝!這工作! :) – Victor 2012-04-01 18:52:59

+0

沒問題,我推薦[gitcasts.com](http://gitcasts.com/)如果你是新手git :) – stephenmurdoch 2012-04-01 18:56:13

相關問題