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:
parent
a1844f76e0
commit
d591eabd0a
1 changed files with 11 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue