简体   繁体   中英

Original sub-domain of rails app to Heroku

I would like to set up original domain to Heroku. But I got stuck. Could you help me?

What I did is as follows;

①heroku domains:add www.example.com

②DNS setting

a www 75.101.163.44
a www 75.101.145.87
a www 174.129.212.2

③host www.example.com

and then I got this.

Host www.example.com not found: 3(NXDOMAIN)

Heroku suggests not to use naked domains because they're fragile.

You need to set up a CNAME domain to Heroku like this:

CNAME www your-app-name.herokuapp.com.

Remove the A records. Please see the rest of the docs here: https://devcenter.heroku.com/articles/custom-domains

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM