AndrewLeonardi AndrewLeonardi - 2 years ago 164
Node.js Question

Heroku Custom Domain Not Working

What is the correct way to connect a Heroku app with a custom domain?

This is how I did it in the past:

  1. Point Godaddy's DNS to heroku's provided target (example:

  2. Turn on domain forwarding on the domain

  3. Add domain to Heroku in the settings

For some reason now my provided target from Heroku is like this: When I add that DNS to GoDaddy I get a There's nothing here, yet. page.

Where am I going wrong? Thanks!

Answer Source

I kept skipping this step because the custom domain already showed up in my Heroku app. Ran this and it started working.

heroku domains:add

Hint: Want every page to be secure SSL? Use this awesome NPM package

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download