2019/08/23

自分のweb siteの調整

cross-envでproductionでビルドをしていたが、なぜかdevelopmentになっていたので、直接pdoductionビルドするように、crorss-envを抜いた。

github pageからnetlifyへのリダイレクト

やり方

公開しているGitHub pageのリポジトリにCNAMEを置いて、masterでpushするとできる。

ディレクトリ構造

. ├── .git └── CNAME

CNAMEに書くこと

遷移先を書く。

hoge.netlify.com

etc...

警告メールは来るがとくに何もしていない。

[hoge/hoge.github.io] Page build warning

The page build completed successfully, but returned the following warning for the `master` branch:

Your site's DNS settings are using a custom subdomain, hoge.netlify.com, that's set up as an A record. We recommend you change this to a CNAME record pointing at hoge.github.io. For more information, see https://help.github.com/en/articles/using-a-custom-domain-with-github-pages.

For information on troubleshooting Jekyll see:

  https://help.github.com/articles/troubleshooting-jekyll-builds

If you have any questions you can contact us by replying to this email.

コメント

このブログの人気の投稿

Maker Faire Tokyo 2016に行った。

技術書展2の感想

『19世紀パリ時間旅行』の感想