Help us understand the problem. What is going on with this article?

【無料】Cloudflareを使ってHerokuで独自ドメインで運用する方法

Railsアプリケーションのproduction.rbの設定を変更

config/environments/production.rb
config.force_ssl = true

ドメインを登録する

image.png

Freeプランを選択

image.png

初期で入ってるのはすべて消す

image.png

CNAME-独自ドメイン-Herokuドメイン で設定する

image.png

ネームサーバーの設定変更

変更する情報はCLOUFAREのDNSの下部にある

image.png

お名前ドットコムでネームサーバーを変更する

image.png

Herokuにてドメインの追加

ドメインを追加するためにはクレジットカードの登録が必要なので、先に登録しておきます。

Personal>'appName'>Setting>Domains and cerfificates でドメインを入力

image.png

image.png

CloudFlareでSSL対応設定

image.png

リダイレクトも設定できる

image.png

以上!

healing_code
システムエンジニアやってます。 Qiitaは最強のメモ!!
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした