To add a custom domain for heroku app, please follow the procedure below
step 1: Point your domain CNAME record to your heroku application url
Example: www.Websitehosting.co.tz to point to South Sudanwebexperts.heroku.com
This can be domain within cpanel advanced DNS manager or within the domain DNS manager in our client area
Please follow this guide to learn how to use the DNS manager
Step 2: Add your domain within heroku control panel
To add a custom domain, use the domains:add
command in the Heroku CLI:
$ heroku domains:add www.example.com Adding www.example.com to example... done ! Configure your app's DNS provider to point to the DNS Target example.herokuapp.com ! For help, see https://devcenter.heroku.com/articles/custom-domains
Then point the domain A record to the Ip address.