hermannsw / prototype_callsystem_front

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy

Develop

git clone { this repo }
cd { this repo }
yarn  # installing required packages
yarn start

Production

cp .env.example .env.production
vi .env.production  # Production用に編集する
yarn build && aws s3 sync build/ s3://{ バケット名 }

DNS

S3のstatic website hostingだけではHTTPSに対応できないのでCloud FrontとRoute 53を併用する バケット名はドメインと一致する形で作成する

  • ウェブサイトホスティングとして使用できるがHTTPSが使用できない http://{ バケット名 }.s3-website-ap-northeast-1.amazonaws.com/index.html
  • エンドポイントとして動作するのでウェブサイトホスティングとしては使用できない https://{ バケット名 }.s3.amazonaws.com/index.html

Cloud Front

  • Distributionの作成 Originは作成したバケット名と一致させる
  • Distributionに対してACMで発行した証明書を割り当てる

Route 53

CNAMEのvalueにCloud FrontのDomain Nameを指定する

About


Languages

Language:JavaScript 71.0%Language:CSS 18.6%Language:HTML 10.4%