Heroku's free plan is a great service that allows you to publish your site for ** free **. But [appname] herokuapp.com is crap and I want a ** unique domain **. ..
For such a person, I will leave a memo instead of the method I used this time.
・ Macbook Air ・ Python (3.6.5) ・ Wagtail (2.9.2)
・ Heroku ・ Cloudflare ・ Freenom
・ The service is up to heroku. -I own my own domain (I used Freenom this time).
** [Reinventing the Wheel](https://ja.wikipedia.org/wiki/%E8%BB%8A%E8%BC%AA%E3%81%AE%E5%86%8D%E7%99% BA% E6% 98% 8E #: ~: text =% E8% BB% 8A% E8% BC% AA% E3% 81% AE% E5% 86% 8D% E7% 99% BA% E6% 98% 8E% EF% BC% 88% E3% 81% 97% E3% 82% 83,% E6% 8C% 87% E3% 81% 99% E3% 81% 9F% E3% 82% 81% E3% 81% AE% E6 % 85% A3% E7% 94% A8% E5% 8F% A5% E3% 80% 82) ** There are many places that overlap with the references to avoid it, so I will go smoothly. First, as with the references,
Register an account on cloudflare and select the Free plan with the site name after your own domain.
Delete all Initial items and set as follows. (Image borrowed from the following references)
This time, it is Freenom, so change NameServer to the one described in cloudflare from NameServer (My domain> Managing domain> Management Tools) on Freenom. ** Differences this time **
Have heroku apply the changes. In the bibliography, it says "Personal>'appName'> Setting> Domains and cerfificates", but I couldn't confirm Domains and cerfificates, so it was separate. Therefore, I applied my own domain from "Personal>'appName'> Setting> Domains".
・ [Free] How to operate with your own domain on Heroku using Cloudflare
Recommended Posts