summaryrefslogtreecommitdiff
path: root/Deploy.md
diff options
context:
space:
mode:
authoryyamashita <yyamashita@mosquit.one>2026-05-07 23:37:17 +0900
committeryyamashita <yyamashita@mosquit.one>2026-05-07 23:37:17 +0900
commit2a0735ed52911d972958c6d5c4528c2073d54b06 (patch)
tree6e9e19f2a494d226a4e03ee96d0bfc0fabfc277f /Deploy.md
parent33b25f148457588ef99deac701a8f6e98410c8d9 (diff)
Add Referrer-Policy no-referrer header
Diffstat (limited to 'Deploy.md')
-rw-r--r--Deploy.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/Deploy.md b/Deploy.md
index 4b02e06..11921f3 100644
--- a/Deploy.md
+++ b/Deploy.md
@@ -41,8 +41,8 @@ ssh golive 'docker compose -f /app/docker-compose.yml ps'
# 手動再起動
ssh golive 'cd /app && docker compose restart'
-# スクレイピング手動実行
-ssh golive 'curl -s -X POST http://localhost:3000/api/scrape'
+# スクレイピング手動実行(コンテナ内 Node で fetch)
+ssh golive 'docker exec app-app-1 node -e "fetch(\"http://localhost:3000/api/scrape\").then(r=>r.text()).then(console.log)"'
```
## スクレイピング定期実行(cron)
@@ -50,7 +50,7 @@ ssh golive 'curl -s -X POST http://localhost:3000/api/scrape'
```bash
ssh golive 'crontab -e'
# 以下を追加(毎朝5時):
-# 0 5 * * * curl -s -X POST http://localhost:3000/api/scrape
+# 0 5 * * * docker exec app-app-1 node -e "fetch('http://localhost:3000/api/scrape').then(r=>r.text()).then(console.log)"
```
## 初回サーバーセットアップ手順(再構築時)