2013-07-27 127 views

回答

0

您部署的應用程序目前正在被Rails的默認靜態索引頁面覆蓋。從config/routes.rb

# You can have the root of your site routed with "root" 
# just remember to delete public/index.html. 

因此,首先要確保你的根路徑設置:

# config/routes.rb 
root :to => `root_controller#root_action` 

然後,刪除public/index.html,更改提交到版本控制,並重新部署到Heroku的。

+0

問題是如果我已經有倉庫如何刪除它在git集線器 –

0

首先確保您有正確的路線。然後您將更改提交到主分支,然後:

git push heroku master 

希望這有助於您。