部署到heroku – 无法摆脱“欢迎使用rails”默认页面

我在本地主机上创建了一个非常简单的rails应用程序并删除了public / index.html并将:root路由更改为另一个页面。 它工作正常,但当我部署到heroku时,index.html页面显示“Welcome Aboard,你在轨道上骑ruby”

我如何在Heroku中摆脱它? 为什么会这样?

您是否确保从您正在推送的git仓库中删除public / index.html?

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