我的应用程序未上传
heroku
仅显示欢迎使用 ruby on rails 的第一页 my url is my url link
您部署的应用程序目前被 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。
首先确保你有正确的路线。然后将更改提交到主分支,然后:
git push heroku master
希望这可以帮助。