From d7fc624b726058b3ab358cad19d1d65350a2fc65 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sat, 18 May 2024 14:26:16 -0700 Subject: [PATCH] Create `rails nc_mall:sync` cron job We run every ten minutes! It's pretty darn fast, and not very many requests, so I'm not too worried about that applying server pressure. --- deploy/setup.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/setup.yml b/deploy/setup.yml index e8af03ef..e5000a34 100644 --- a/deploy/setup.yml +++ b/deploy/setup.yml @@ -437,6 +437,13 @@ mode: "755" state: directory + - name: Create 10min cron job to run `rails nc_mall:sync` + become_user: impress + cron: + name: "Impress: sync NC Mall data" + minute: "*/10" + job: "bash -c 'source /etc/profile && source ~/.bash_profile && cd /srv/impress/current && bin/rails nc_mall:sync'" + - name: Create weekly cron job to run `rails public_data:commit` become_user: impress cron: