diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-06-15 23:25:39 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-06-15 23:25:39 +0900 |
| commit | 090cf7d92e8e660b1dccf8d64780bd2430660cbc (patch) | |
| tree | 7d066972e89a47ca36f87e1faebec3366c8c8a94 /CLAUDE.md | |
| parent | 0443c8c9972cbe792716cca193f7ad1ae64c0eda (diff) | |
Add official-site-2023-dev as git submodule at official-site/
- Move management scripts from official-site/ to official-site-scripts/
- Update CLAUDE.md paths accordingly
- Deploy key configured at ~/.ssh/mosquitone_official_site_deploy
with SSH alias github-mosquitone-official-site
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -51,7 +51,7 @@ golive に登録されていない会場は `enrich-event.py` が `detailURL` ```bash # events/ ディレクトリに JSON ファイルを作成 # ファイル名: YYYY-MM-DD-<slug>.json -cp official-site/events/2026-06-27-cre4m-sod4.json official-site/events/<new-file>.json +cp official-site-scripts/events/2026-06-27-cre4m-sod4.json official-site-scripts/events/<new-file>.json # 内容を編集 ``` @@ -66,7 +66,7 @@ cp official-site/events/2026-06-27-cre4m-sod4.json official-site/events/<new-fil AppSync に登録: ```bash -bash official-site/add-event.sh official-site/events/<new-file>.json +bash official-site-scripts/add-event.sh official-site-scripts/events/<new-file>.json ``` 返ってきた `id` を控えておく。 @@ -75,7 +75,7 @@ bash official-site/add-event.sh official-site/events/<new-file>.json ```bash # サーバー上で実行(golive SQLite DB に直接アクセスできる環境) -python3 official-site/enrich-event.py <event-id> +python3 official-site-scripts/enrich-event.py <event-id> ``` エンリッチが自動で行うこと: @@ -91,19 +91,19 @@ golive にまだデータがない場合(スクレイプが古い等)は先 curl -H "X-Crawler-Access: f9a3c1e847b2d056" \ "https://golive.yyamashita.com/api/scrape?venue_id=navey-floor" # 完了を待ってから再実行 -python3 official-site/enrich-event.py <event-id> +python3 official-site-scripts/enrich-event.py <event-id> ``` 未エンリッチのイベントをまとめて処理する場合: ```bash -python3 official-site/enrich-event.py --all-unenriched +python3 official-site-scripts/enrich-event.py --all-unenriched ``` ### ステップ 3: サイトをデプロイ ```bash -bash official-site/deploy.sh +bash official-site-scripts/deploy.sh ``` Amplify が `main` ブランチを再ビルドし、https://www.mosquit.one に反映される。完了まで約 5〜10 分。 @@ -114,12 +114,12 @@ Amplify が `main` ブランチを再ビルドし、https://www.mosquit.one に ```bash # ライブ一覧(公開フラグ付き) -bash official-site/list-events.sh +bash official-site-scripts/list-events.sh # イベント追加 → エンリッチ → デプロイ(一連の流れ) -bash official-site/add-event.sh official-site/events/<file>.json -python3 official-site/enrich-event.py <returned-id> -bash official-site/deploy.sh +bash official-site-scripts/add-event.sh official-site-scripts/events/<file>.json +python3 official-site-scripts/enrich-event.py <returned-id> +bash official-site-scripts/deploy.sh ``` ## AWS 認証 @@ -135,7 +135,7 @@ AWS_DEFAULT_REGION=ap-northeast-1 `aws` コマンドが未インストールの場合は `/tmp/awscli/aws/dist/aws` を使用: ```bash -AWS_CLI=/tmp/awscli/aws/dist/aws python3 official-site/enrich-event.py <id> +AWS_CLI=/tmp/awscli/aws/dist/aws python3 official-site-scripts/enrich-event.py <id> ``` ## AppSync Event スキーマ |
