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.
This commit is contained in:
Emi Matchu 2024-05-18 14:26:16 -07:00
parent 41532bd019
commit d7fc624b72

View file

@ -437,6 +437,13 @@
mode: "755" mode: "755"
state: directory 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` - name: Create weekly cron job to run `rails public_data:commit`
become_user: impress become_user: impress
cron: cron: