https://devcenter.heroku.com/articles/custom-domains http://thenomadicfreelancer.blogspot.com/2012/08/pointing-godaddy-domain-to-your-heroku.html
For each custom subdomain use domains:add
in the Terminal.
heroku domains:add www.example.com
Go to the domain's DNS manager and configure it with a CNAME record pointing the subdomain to your herokuapp.com hostname.
Record | Name | Target |
---|---|---|
CNAME | www | example.herokuapp.com |
To check that this worked correctly run host www.example.com
This will work to have www.example.com forward to www.example.herokuapp.com, but it won't work if a user types example.com into the browser.
To get this to work, go to the GoDaddy domain information and set forwarding to www.example.com.
I tried to do so many time to add cutom domain with heroku by command
heroku domains:add www.mysite.in
Adding www.mysite.in to ⬢ guarded-atoll-####... !
▸ Please verify your account in order to add domains (please enter a credit card) For more information, see
▸ https://devcenter.heroku.com/categories/billing Verify now at https://heroku.com/verify
Even www.mysite.in shows heroku purple page
but not working anymore..