Troubleshoot Heroku Showing a Different App
Last updated
Table of Contents
- Why this happens
- If the other app is yours
- If the other app belongs to someone else
- Have more questions?
If your domain opens a different Heroku app than the one you expected, the host name is attached to another app at Heroku. Heroku chooses the app by the host name in the request, not by the DNS record, so DNS is working. Move the host name to the right app at Heroku, then update the DNS record in DNSimple.
Why this happens
For example, you have two Heroku apps, green-turtle and red-turtle. You want www.example.com to open green-turtle, but at some point www.example.com was added to red-turtle. Every request for www.example.com that reaches Heroku goes to red-turtle, whatever the DNS record in DNSimple points to.
To see which app has the host name, run heroku domains -a <app> for each of your apps.
If the other app is yours
To move the host name to the right app
-
Remove the host name from the app that has it:
heroku domains:remove www.example.com -a red-turtle -
Add it to the app you want:
heroku domains:add www.example.com -a green-turtle -
Heroku replies with a new DNS target, such as
whispering-willow-5678.herokudns.com. In DNSimple, update the CNAME record forwww(or the ALIAS record for the domain apex) to that target.
If you set up the domain with the Heroku Connector, disconnect the old connection and create a new one for the right app instead.
If the other app belongs to someone else
Heroku allows a host name on only one app. If another Heroku account has it, file a support ticket with Heroku. Then add the host name to your app and update the DNS record, as in Finish the setup at Heroku.
Have more questions?
If you have additional questions or need any assistance with the wrong Heroku app being served, contact support, and we will be happy to help. You can also read more about DNSimple integrations.