LoginSignup
4
5

More than 5 years have passed since last update.

Herokuで独自ドメインでWebアプリを動かす。(Route 53版)

Posted at

別にRoute53に限らずできる手順だとは思いますが。

参考
https://devcenter.heroku.com/articles/custom-domains

ドメインをRoute53に設定する

例として、example.comとすると、

  • Create Hosted Zone
  • 「example.com」を入力

CNAMEレコードを登録する

サブドメインの例として、ex1.example.comとすると、

  • Create Record Set
  • Nameに ex1を入力
  • TypeでCNAMEを選択
  • Value に herokuでのドメインを入力(***.herokuapp.comみたいなやつ

これだけだとなんだか弾かれるので、herokuのコマンドを叩く。

heroku CLIで、ドメインを登録

$ heroku domains:add ex1.example.com

これで、そのうち http://ex1.example.com が閲覧できるようになるはずです。

4
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5