Ruby on rails 部署到heroku——can';“不要摆脱”这个词;欢迎来到rails“;默认页

Ruby on rails 部署到heroku——can';“不要摆脱”这个词;欢迎来到rails“;默认页,ruby-on-rails,heroku,Ruby On Rails,Heroku,我在本地主机上制作了一个非常简单的rails应用程序,删除了public/index.html,并将:root路由更改为另一个页面。它工作得很好,但当我部署到heroku时,index.html页面显示“欢迎加入,您正在使用ruby on rails” 我怎样才能在Heroku摆脱它?为什么会这样?您是否确保从您正在推动的git回购中删除public/index.html git rm public/index.html git add -u git commit -m "Removed ind

我在本地主机上制作了一个非常简单的rails应用程序,删除了public/index.html,并将:root路由更改为另一个页面。它工作得很好,但当我部署到heroku时,index.html页面显示“欢迎加入,您正在使用ruby on rails”


我怎样才能在Heroku摆脱它?为什么会这样?

您是否确保从您正在推动的git回购中删除public/index.html

git rm public/index.html
git add -u
git commit -m "Removed index.html"

您是否确保从您正在推动的git回购中删除public/index.html

git rm public/index.html
git add -u
git commit -m "Removed index.html"

关于这个主题的更多信息,对于已经这样做的人来说是在,但仍然存在一个问题:rake tmp:cache:clear关于这个主题的更多信息,对于已经这样做的人来说,仍然存在一个问题:rake tmp:cache:clear