部署到Heroku与自定义域 [英] Deploying to Heroku with custom domain

查看:133
本文介绍了部署到Heroku与自定义域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从My-app.heroku.com运行了应用程序,它的工作原理,我已经在我的域之间设置了DNS,但每当我从我指定的域中打开我的应用程序,heroku说参考文档,如果你需要帮助部署。



我已经看了几次文档,但我没有得到它。



我缺少什么步骤?

解决方案

您是否添加了custom_domain加载项? >

  heroku addons:添加custom_domains 

然后告诉heroku你想要什么域名

 英雄域名:添加www.yoursite.com 
heroku域名:add yoursite.com

你说你已经处理了DNS步骤,所以一旦你运行这些命令你应该很好去。



我相信相关文档在这里: http://devcenter.heroku.c om / articles / custom-domains


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.

What step am I missing?

解决方案

Have you added the custom_domain add-on?

heroku addons:add custom_domains

Then tell heroku what domain you want

heroku domains:add www.yoursite.com
heroku domains:add yoursite.com

You said you already handled the DNS steps, so once you run those commands, you should be good to go.

I believe the relevant documentation is here: http://devcenter.heroku.com/articles/custom-domains

这篇关于部署到Heroku与自定义域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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