2020-05-06 にっき

モニターアームを設置した、想像以上にべんり


CSSの練習しようと思ってリポジトリを作った

github.com

% npx create-react-app textures --template typescript

する。こないだまで --typescript だった気がするけど変わったよう。

いい感じにできたのでNetlifyにデプロイしたい。(実はやったことなかった) ログインする。

% npx netlify-cli login

ブラウザが開くのでログインしていい感じにする。

次、ビルドする

% yarn run build

デプロイする

% npx netlify-cli deploy
This folder isn't linked to a site yet
? What would you like to do? +  Create & configure a new site
? Team: Seiei Miyagi's team
Choose a unique site name (e.g. the-awesome-hanachin-site.netlify.app) or leave it blank for a random name. You can update the site name later.
? Site name (optional): textures

Site Created

Admin URL: https://app.netlify.com/sites/textures
URL:       https://textures.netlify.app
Site ID:   472c6fee-30d0-4cf7-9aaf-5e1e402d55d9
Please provide a publish directory (e.g. "public" or "dist" or "."):
/home/sei/src/github.com/hanachin/textures
? Publish directory /home/sei/src/github.com/hanachin/textures/build
Deploy path: /home/sei/src/github.com/hanachin/textures/build
Deploying to draft URL...
✔ Finished hashing 18 files
✔ CDN requesting 10 files
✔ Finished uploading 10 assets
✔ Draft deploy is live!

Logs:              https://app.netlify.com/sites/textures/deploys/5eb2e6f73c196112b8a2dca6
Website Draft URL: https://5eb2e6f73c196112b8a2dca6--textures.netlify.app

If everything looks good on your draft URL, deploy it to your main site URL with the --prod flag.
netlify deploy --prod

動いてそうに見える、デプロイする

% npx netlify-cli deploy --prod
Please provide a publish directory (e.g. "public" or "dist" or "."):
/home/sei/src/github.com/hanachin/textures
? Publish directory /home/sei/src/github.com/hanachin/textures/build
Deploy path: /home/sei/src/github.com/hanachin/textures/build
Deploying to main site URL...
✔ Finished hashing 18 files
✔ CDN requesting 0 files
✔ Finished uploading 0 assets
✔ Deploy is live!

Logs:              https://app.netlify.com/sites/textures/deploys/5eb2e7653e3a06fb5236a1bf
Unique Deploy URL: https://5eb2e7653e3a06fb5236a1bf--textures.netlify.app
Website URL:       https://textures.netlify.app

出来た

textures.netlify.app

GitHub Actionsはまた今度


Approve貰った、コンフリクトしてたのでrebaseした

github.com

名前空間変わったりして地味にコケたので直してfixupしておいた

いいなと思ったらKyashでお金を下さい
20191128011151
GitHubスポンサーも受け付けています
https://github.com/sponsors/hanachin/