Rails,Heroku - 配置123-reg域为英雄 [英] Rails, Heroku - configuring 123-reg domain for heroku

查看:578
本文介绍了Rails,Heroku - 配置123-reg域为英雄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



目前,当我检查步骤是否正确时,我想知道如何将我的域名注册到123-reg。我已经采取了工作,我得到一个错误,说:

 主机www.example.com找不到:2(SERVFAIL) 

Heroku有GoDaddy的说明。我使用123-reg。 123-reg对heroku没有任何支持,但他们确实有将CNAME记录添加到我的DNS的说明。我跟着他们。



我做了三个CNAME条目(并删除了所有的A记录,因为它显示Heroku不接受他们)。

  www 
CNAME www.example.com。
www
CNAME example.com。
www
CNAME rainbow-mutiny-636 ...

所有CNAME记录有追踪。。



任何人都可以帮助您了解如何开始使用123-reg域名配置的英雄?

解决方案

第一个问题是您有冲突的CNAME条目。首先删除主机名称为www的所有CNAME条目。



然后创建一个新的CNAME条目。主机名字段应为www,目标CNAME应为您的Heroku应用主机名rainbow-mutiny-636.herokuapp.com。



现在转到您的Rails应用程序目录,并在终端中运行 heroku domains 。如果您以前已经正确设置,您应该会看到以下内容:

 域名DNS目标
─── ──────────────────────────────────────────────────────────────────────────────────────────── .com rainbow-mutiny-636.herokuapp.com

如果您没有看到此条目,通过运行以下方式创建它:

 英雄域:添加www.example.com 
/ pre>

就是这样。一旦DNS更改传播 http://www.example.com 应该指向您的Heroku应用程序。


I am trying to figure out how to point my domain, which is registered with 123-reg to my heroku app.

Currently, when I check whether the steps I have taken have worked, I get an error that says:

Host www.example.com not found: 2(SERVFAIL)

Heroku has instructions for GoDaddy. I use 123-reg. 123-reg don't have any support for heroku but they do have instructions for adding CNAME records to my DNS. I've followed them.

I made three CNAME entries (and removed all A records as it appears that Heroku does not accept them).

www
CNAME           www.example.com.          
www
CNAME           example.com.          
www
CNAME           rainbow-mutiny-636...

All CNAME records have the trailing "."

Can anyone help with instructions for how to get started with 123-reg domain name configuration for heroku?

解决方案

The first issue is that you have conflicting CNAME entries. Start by removing all CNAME entries where the hostname is "www".

Then create one new CNAME entry. The hostname field should be "www" and the Destination CNAME should be your Heroku app hostname "rainbow-mutiny-636.herokuapp.com".

Now go to your Rails app directory and run heroku domains in the terminal. If you've previously set it up properly you should see something like:

Domain Name                DNS Target
─────────────────────────  ─────────────────────
www.example.com            rainbow-mutiny-636.herokuapp.com

If you don't see this entry, then create it by running:

heroku domains:add www.example.com

And that's it. Once the DNS changes have propagated http://www.example.com should point to your Heroku app.

这篇关于Rails,Heroku - 配置123-reg域为英雄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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