部署到heroku - 无法摆脱“欢迎来到铁轨”默认页面 [英] deploying to heroku -- can't get rid of the "welcome to rails" default page

查看:110
本文介绍了部署到heroku - 无法摆脱“欢迎来到铁轨”默认页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地主机上制作了一个非常简单的rails应用程序,并删除了public / index.html,并将:root路径更改为另一个页面。它运行良好,但是当我部署到heroku时,该index.html页面显示Welcome Aboard,您正在轨道上使用红宝石。

I made a very simple rails app on local host and deleted public/index.html and changed the :root route to another page. It worked fine, but when I deployed to heroku, that index.html page shows up "Welcome Aboard, you're riding ruby on rails"

我该如何摆脱那在Heroku中?为什么在那里?

How can I get rid of that in Heroku? Why is it there?

推荐答案

您是否确保从您的git repo中删除public / index.html

Did you make sure to remove public/index.html from your git repo that you're pushing as well?

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

这篇关于部署到heroku - 无法摆脱“欢迎来到铁轨”默认页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆