问题描述
我已经从 My-app.heroku.com 运行了该应用程序并且它可以工作,并且我已经在我的域之间设置了 DNS,但是每当我从我指定的域打开我的应用程序时,heroku 都会说请参阅如果您需要帮助部署,请查看文档."
I have run the app from from the My-app.heroku.com and it works, and I have set up the DNS between my domain but whenever I open my app from the domain I have specified, heroku says "Refer to the documentation if you need help deploying."
我已经看了几次文档,但我不明白.
I've looked at the documentation a few times but I don't get it.
我遗漏了哪一步?
推荐答案
您是否添加了 custom_domain 附加组件?
Have you added the custom_domain add-on?
heroku addons:add custom_domains
然后告诉heroku你想要什么域名
Then tell heroku what domain you want
heroku domains:add www.yoursite.com
heroku domains:add yoursite.com
你说你已经处理了 DNS 步骤,所以一旦你运行这些命令,你应该很高兴.
You said you already handled the DNS steps, so once you run those commands, you should be good to go.
我相信相关文档在这里:http://devcenter.heroku.com/articles/自定义域
I believe the relevant documentation is here: http://devcenter.heroku.com/articles/custom-domains
这篇关于使用自定义域部署到 Heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!