将 Heroku 应用程序与我的 GoDaddy 域连接 [英] Connect Heroku Application with my GoDaddy Domain

查看:29
本文介绍了将 Heroku 应用程序与我的 GoDaddy 域连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Heroku 上设置了一个应用程序,并且还从 GoDaddy 购买了一个域.

I've set up a application on Heroku and have also purchased a domain from GoDaddy.

我在 Google 上搜索了如何将我的域连接到 Heroku 并且我也阅读了 Heroku 文档,但我无法将它连接到我的域.

I searched on Google how to connect my domain to Heroku and I also read the Heroku documentation but I am not able to connect it with my domain.

我是初学者,发现我需要添加 cname 或域,但我不知道该怎么做.如何将我的域与 heroku 应用程序连接起来?我需要在我的域中添加 DNS,但如何添加?

I am a beginner and have found I need to add cname or domain may be but I don't know how to do it. How can I connect my domain with the heroku app? I need to add DNS on my domain but how to add it?

请让我知道将我的域与 Heroku 应用程序连接的非常基本和详细的分步过程.

Please let me know very very basic and detail step by step procedure to connect my domain with the Heroku app please.

推荐答案

可能重复.. 根据用户要求我们做...

Possible duplicate.. As per the user request we do ...

您需要执行 2 个步骤,

There are 2 steps you need to perform,

添加自定义域插件并将您要使用的域(例如 www.mywebsite.com)添加到您的应用程序中,运行以下命令来执行此任务

Add the custom domains addon and add the domain your going to use, eg www.mywebsite.com to your application, Running below command to perform this task

heroku 域:添加 www.example.com

heroku domains:add www.example.com

转到您的域名注册商控制面板,并将 www.mywebsite.com 设置为 yourapp.herokuapp.com 的 CNAME 条目,假设您使用的是 CEDAR 堆栈.

Go to your domain registrar control panel and set www.mywebsite.com to be a CNAME entry to yourapp.herokuapp.com assuming you are using the CEDAR stack.

只需将 www 放在值中,目标是您的 heroku 应用程序,例如 yourname.herokuapp.com

just put www in value and target is your heroku app like yourname.herokuapp.com

这篇关于将 Heroku 应用程序与我的 GoDaddy 域连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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