Merge pull request #114 from Pear-Trading/TBSliver/Cron-Jobs

Adding Cron Job script
This commit is contained in:
Tom Bloor 2018-04-16 12:45:55 +01:00 committed by GitHub
commit 385045215e
3 changed files with 11 additions and 5 deletions

View file

@ -2,6 +2,7 @@
# Next Release
* Added `cron_daily` script for holding all daily cronjobs
* **Admin Fix** Parse currency without a currency symbol on import
* **Admin Fix** Fix large CSV issue on import
* Use custom secrets for encryption

10
script/cron_daily Normal file
View file

@ -0,0 +1,10 @@
#! /bin/bash
# Scripts to run daily.
# This will be run sometime between 2 & 3AM every morning.
# If order matters, make sure they are in the right place.
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
MOJO_MODE=production ./script/pear-local_loop recur_transactions --force
MOJO_MODE=production ./script/pear-local_loop recalc_leaderboards

View file

@ -1,5 +0,0 @@
#! /bin/bash
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
MOJO_MODE=production ./script/pear-local_loop recalc_leaderboards