[PYTHON] How to make your own domain site with heroku (free plan)

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.

Development environment

・ Macbook Air ・ Python (3.6.5) ・ Wagtail (2.9.2)

The service that was taken care of this time

・ Heroku ・ Cloudflare ・ Freenom

Prerequisites

・ The service is up to heroku. -I own my own domain (I used Freenom this time).

Differences from the reference site

** [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,

  1. Register an account on cloudflare and select the Free plan with the site name after your own domain.

  2. Delete all Initial items and set as follows. (Image borrowed from the following references) https___qiita-image-store.s3.ap-northeast-1.amazonaws.com_0_346533_85d72494-9277-5ff0-a782-8f69ee6a391c.png

  3. 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 **

  4. 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".

References

[Free] How to operate with your own domain on Heroku using Cloudflare

Recommended Posts

How to make your own domain site with heroku (free plan)
Try to make your own AWS-SDK with bash
Try HeloWorld in your own language (with How to & code)
Make the theme of Pythonista 3 like Monokai (how to make your own theme)
To import your own module with jupyter
How to install your own (root) CA
How to make a Pelican site map
How to access data with object ['key'] for your own Python class
How to upload with Heroku, Flask, Python, Git (4)
How to define your own target in Sage
Make your own module quickly with setuptools (python)
How to make Linux compatible with Japanese keyboard
Make your own music player with Bottle0.13 + jPlayer2.5!
Steps to install your own library with pip
Memo to create your own Box with Pepper's Python
Explain in detail how to make sounds with python
How to upload with Heroku, Flask, Python, Git (Part 3)
How to make a shooting game with toio (Part 1)
How to upload with Heroku, Flask, Python, Git (Part 1)
How to make an HTTPS server with Go / Gin
How to deploy a web app made with Flask to Heroku
How to make a Cisco Webex Teams BOT with Flask
[Ansible] How to call variables when creating your own module
How to use pyenv and pyenv-virtualenv in your own way
How to make a simple Flappy Bird game with pygame
(Note) How to pass the path of your own module
Easy to make with syntax
How to update with SQLAlchemy?
How to Alter with SQLAlchemy?
How to separate strings with','
How to RDP with Fedora31
How to Delete with SQLAlchemy?
I tried to make my own high school girl BOT with Rinna style with LINE BOT (Python & Heroku)
How to deal with errors when installing whitenoise and deploying to Heroku
How to make a command to read the configuration file with pyramid
How to make a surveillance camera (Security Camera) with Opencv and Python
Make your own VPC with a Single Public Subnet Only with boto
How to create a heatmap with an arbitrary domain in Python
How to use jupyter notebook without polluting your environment with Docker
[Introduction to StyleGAN] Unique learning of anime with your own machine ♬
Introduction to Deep Learning (2) --Try your own nonlinear regression with Chainer-
When using the zap library in your own Logger with Golang, how to put the hierarchy above Logger in Caller
How to cancel RT with tweepy
How to make a Japanese-English translation
Python: How to use async with
Make Echolalia LINEbot with Python + heroku
Make your own manual. [Linux] [man]
How to use virtualenv with PowerShell
How to deal with imbalanced data
How to make a slack bot
How to make a crawler --Advanced
How to make a recursive function
How to run matplotlib on heroku
How to use Django3.x + heroku + cloudinary
How to get started with Scrapy
How to deal with DistributionNotFound errors
How to get started with Django
How to Data Augmentation with PyTorch
How to make a deadman's switch
How to use FTP with Python
[Blender] How to make a Blender plugin