forked from OpenNeo/impress
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:
parent
41532bd019
commit
d7fc624b72
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue