Add modeling cron job to deploy-setup

This should run it every 10 minutes! Wowie, cron config on the new box is easy! :3
This commit is contained in:
Emi Matchu 2022-10-11 12:54:02 -07:00
parent a1844f76e0
commit d591eabd0a

View file

@ -255,6 +255,17 @@
notify:
- Restart nginx
- name: Create cron log files directory
file:
path: /srv/impress-2020/cron-logs
state: directory
- name: Set up cron jobs
cron:
name: model-needed-items
minute: "*/10" # Every 10 minutes
job: "cd /srv/impress-2020/current && yarn model-needed-items 2>&1 > /srv/impress-2020/cron-logs/model-needed-items.log"
- name: Install dependencies for the npm module node-canvas
become: yes
apt: