Report this

What is the reason for this report?

Setting up a GoDaddy domain name with Heroku

Posted on December 21, 2018

I’m new to using Heroku so I’m a bit confused because I initially had my website hosted on GoDaddy, but when I added node to my web app I switched to Heroku.

So what is happening is when I visit my website using www. it goes to the correct, updated site, however, when I try the naked route it takes it to the older version of the website. I figured since it’s still showing the older site with the naked route that there was a problem on GoDaddy, therefore, I updated one page on GoDaddy and sure enough, the page is updated via the naked route now.

That leads to my first question. If my website is now on Heroku, does it still need to be hosted on GoDaddy as well? Additionally, if the first question is yes, then how do I set up the naked route to point to the same site as the www. route?

I’ve already have the host as www with the ‘points to’ pointing to the Heroku domain name but still getting the problem above. This is why I believe the problem lies with the hosting on GoDaddy.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

You would need to point your domain name to Heroku, to do that you can follow the steps here:

https://devcenter.heroku.com/articles/custom-domains

That way your domain name would still be registered with Godaddy but it would be pointing to Heroku and your website’s content would again be loading only from Heroku.

Regards, Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.