Skip to content

Commit d998e51

Browse files
authored
Update README.md: ⏰ 定期的に実行されるスクリプト
1 parent c9b037c commit d998e51

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ GitHub Actions に `deploy` workflow を入れることもできましたが、
151151

152152
最新版は [scripts/release.sh](https://github.com/coderdojo-japan/coderdojo.jp/blob/main/scripts/release.sh) からご確認いただけます。
153153

154-
```
154+
```console
155155
# データベースのマイグレーション
156156
bundle exec rails db:migrate
157157

@@ -171,6 +171,18 @@ bundle exec rails dojo_event_services:upsert
171171
bundle exec rails podcasts:upsert
172172
```
173173

174+
### ⏰ 定期的に実行されるスクリプト (Heroku Scheduler)
175+
176+
以下のコマンドは上記 CI とは関係なく、定期的に実行されます。
177+
178+
```console
179+
# 【毎日】近日開催のイベント収集 (Daily at 9:00 PM UTC)
180+
$ bundle exec rails upcoming_events:aggregation
181+
182+
# 【毎週】統計情報ページ用のデータ収集 (Daily at 1:00 AM UTC)
183+
$ [ $(date +%u) = 1 ] && bundle exec rails statistics:aggregation
184+
```
185+
174186

175187
<!--
176188
### :cloud: Development with Scrivito

0 commit comments

Comments
 (0)