ローカル確認
以下の順番で実行し、最初のエラーで止めて修正してください。
docker build -t bytetuto-site:local .
docker run --rm bytetuto-site:local nginx -t
docker rm -f bt-check 2>/dev/null; docker run -d --name bt-check -p 8088:80 bytetuto-site:local
sleep 2
curl -fsS http://localhost:8088/healthz # -> ok
curl -fsS http://localhost:8088/ | grep -c byteTuto # > 0
curl -s -o /dev/null -w '%{http_code}\n' http://localhost:8088/x # -> 404
curl -sI http://localhost:8088/ | grep -iE 'content-security|x-frame|cache-control'
curl -sI http://localhost:8088/index.md | grep -i 'content-type: text/markdown'
curl -s -H 'Accept: text/markdown' http://localhost:8088/ | head -3 # -> front matter ---
python3 scripts/check_seo_agents.py # SEO + エージェント対応
python3 scripts/check_responsive.py --base http://localhost:8088 --shots /tmp/rs # レスポンシブ (Playwright)
docker rm -f bt-check
Playwright 初回のみ: pip install playwright && python3 -m playwright install chromium。
シェルスクリプト: bash -n deploy/*.sh nginx/*.sh (shellcheck がインストールされていればそれも実行)。
目視で確認するポイント (開発環境: docker compose -f docker-compose.dev.yml up → http://localhost:8080)
- 背景アニメーションがカクつかずに動き、「アニメーションを減らす」設定が有効な場合は停止する。
- コンソールにエラーが出ていないこと (CSP によりインラインスクリプトはすべてブロック: JS は
site/app.jsに配置)。 /tmp/rs/*-320x640.pngと*-375x667.pngのスクリーンショット: 要素が欠けたり、端に貼り付いたりしていないこと。- ブランドガイドラインを遵守していること (スキル
bytetuto-brandを参照)。