使用heroku在rails web开发上的ruby

时间:2013-07-27 19:50:34

标签: ruby-on-rails heroku

我的应用尚未上传

  

heroku上

仅显示欢迎使用ruby on rails的第一页 我的网址是 my url link

2 个答案:

答案 0 :(得分: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。

答案 1 :(得分:0)

首先确保你有正确的路线。然后将更改提交到主分支,然后:

git push heroku master

希望这有帮助。

相关问题