Create a subdomain on Namecheap for a Heroku Rails app
I have found the solution for my question. So first of all, the correct configuration for the advanced DNS:
- Type: CNAME
- Host: myapp
- Value: myapp.herokuapp.com (without the https protocol)
- TTL: Automatic
After that, it takes a moment for the DNS to update the subdomain and make it available. During this time, I needed to add my subdomain to my Heroku configuration. It is possible via the dashboard of via terminal.
I did it via terminal with this command:heroku domains:add myapp.mysite.com
After some time, it finally worked. However, having a custom domain or subdomain disable the default SSL from Heroku.
I mostly learn via this article:https://devcenter.heroku.com/articles/custom-domains