Rails, Heroku - setting up a 123-reg domain for heroku

I am trying to figure out how to specify my domain that is registered in 123-reg for my heroku application.

Currently, when I check to see if the steps I have taken, I get an error message:

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

Heroku has instructions for GoDaddy. I am using 123-reg. 123-reg does not support the hero, but they have instructions for adding CNAME records to my DNS. I followed them.

I made three CNAME records (and deleted all A records, as Heroku seems to not accept them).

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

All CNAME records have a trailing "."

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

-3
source share
1 answer

The first problem is that you have conflicting CNAME records. Start by deleting all CNAME records, where the host name is "www".

Then create a new CNAME record. The host name field should be β€œwww” and the target CNAME should be your Heroku application name β€œrainbow-mutiny-636.herokuapp.com”.

Now go to the Rails application directory and run heroku domains in the terminal. If you preconfigured it correctly, you should see something like:

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

If you do not see this entry, create it by running:

 heroku domains:add www.example.com 

What is it. Once the DNS changes have spread, http://www.example.com should point to your Heroku application.

0
source

Source: https://habr.com/ru/post/1258503/


All Articles