You can map your own domain name(say, inputbox.com) to the subdomain(inputbox-mockup.herokuapp.com) for your project running on heroku cloud.
Create domain mapping in heroku
The new domain is setup to open up on the custom domain. The URL shown would be of inputbox.com
which internally points to heroku subdomain. Add domain mapping through app settings in heroku dashboard.
Create CNAME record in domain DNS configuration
Create CNAME record through dns management feature provided by the hosting provider. This create a alias for your domain, so that any request on the inputbox.com
would be fetched by heroku subdomain. Also, URL shown to user would be of inputbox.com
Here we create a record whose value equals the heroku subdomain(http://inputbox-mockup.herokuapp.com
) we have to map to our domain.
Setup non-www domain
Add naked domain redirect, to redirect inputbox.com