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 | |
| 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>
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | CLAUDE.md | 22 | ||||
| m--------- | official-site | 0 | ||||
| -rwxr-xr-x | official-site-scripts/add-event.sh (renamed from official-site/add-event.sh) | 0 | ||||
| -rwxr-xr-x | official-site-scripts/deploy.sh (renamed from official-site/deploy.sh) | 0 | ||||
| -rwxr-xr-x | official-site-scripts/enrich-event.py (renamed from official-site/enrich-event.py) | 0 | ||||
| -rw-r--r-- | official-site-scripts/events/2026-06-27-cre4m-sod4.json (renamed from official-site/events/2026-06-27-cre4m-sod4.json) | 0 | ||||
| -rwxr-xr-x | official-site-scripts/list-events.sh (renamed from official-site/list-events.sh) | 0 |
8 files changed, 14 insertions, 11 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b54b732 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "official-site"] + path = official-site + url = git@github-mosquitone-official-site:mosquitone/official-site-2023-dev.git @@ -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 スキーマ diff --git a/official-site b/official-site new file mode 160000 +Subproject bb6b424e91001ba6f9309162af90613a0229929 diff --git a/official-site/add-event.sh b/official-site-scripts/add-event.sh index 109c2c8..109c2c8 100755 --- a/official-site/add-event.sh +++ b/official-site-scripts/add-event.sh diff --git a/official-site/deploy.sh b/official-site-scripts/deploy.sh index 32574e0..32574e0 100755 --- a/official-site/deploy.sh +++ b/official-site-scripts/deploy.sh diff --git a/official-site/enrich-event.py b/official-site-scripts/enrich-event.py index 846a61e..846a61e 100755 --- a/official-site/enrich-event.py +++ b/official-site-scripts/enrich-event.py diff --git a/official-site/events/2026-06-27-cre4m-sod4.json b/official-site-scripts/events/2026-06-27-cre4m-sod4.json index ca9ebef..ca9ebef 100644 --- a/official-site/events/2026-06-27-cre4m-sod4.json +++ b/official-site-scripts/events/2026-06-27-cre4m-sod4.json diff --git a/official-site/list-events.sh b/official-site-scripts/list-events.sh index d56aabf..d56aabf 100755 --- a/official-site/list-events.sh +++ b/official-site-scripts/list-events.sh |
