Search code examples
herokuelixirphoenix-frameworknamecheap

Heroku Custom Domain name broken


I have a custom domain from Namecheap which I am trying to point to a Heroku App.

My Heroku App is called https://desolate-earth-75130.herokuapp.com/ and the custom domain: www.harmoneytree.com

I have followed all the directions I can, including youtube videos, however when I navigate to www.harmoneytree.com, it throws This site can’t be reached

because it goes to https://desolate-earth-75130 without the .herokuapp.com.

Which I don't want anyways, I want www.harmoneytree.com in the browser.

$ host www.harmoneytree.com
www.harmoneytree.com is an alias for harmoneytree.com.
harmoneytree.com is an alias for desolate-earth-75130.herokuapp.com.
desolate-earth-75130.herokuapp.com has address 100.26.7.15
desolate-earth-75130.herokuapp.com has address 52.205.16.151
desolate-earth-75130.herokuapp.com has address 3.225.95.126
desolate-earth-75130.herokuapp.com has address 52.200.110.231
desolate-earth-75130.herokuapp.com has address 34.237.174.28
desolate-earth-75130.herokuapp.com has address 52.86.20.171
desolate-earth-75130.herokuapp.com has address 34.225.219.245
desolate-earth-75130.herokuapp.com has address 34.206.39.216

Heroku Settings>Domains looks like this

harmoneytree.com     animatedhornet...
www.harmoneytree.com animatedtick.....
*.harmoneytree.com   arcanesquid......

namecheap settings look like this

CNAME www desolate-earth-75130.herokuapp.com.

Thanks in advance.


Solution

  • Ended up being the :url field in AppWeb.Endpoint was incorrectly populated.

    Updating that field to the new custom domain name fixed the issue.

    Thanks for the comments!