crontab added for future deployment integration.

This commit is contained in:
Alexey Skobkin 2017-01-18 04:34:24 +03:00
parent 41079a29a8
commit 845097f7ea
2 changed files with 12 additions and 0 deletions

View file

@ -66,6 +66,8 @@ You can use following jobs as an example:
0 0 * * * /usr/bin/php /path/to/point-tools/app/console point:update:subscriptions --all-users --env=prod 0 0 * * * /usr/bin/php /path/to/point-tools/app/console point:update:subscriptions --all-users --env=prod
``` ```
See [`app/crontab`](https://bitbucket.org/skobkin/point-tools/src/master/app/crontab) for more advanced usage.
## Setting Telegram webhook (to enable bot) ## Setting Telegram webhook (to enable bot)
```bash ```bash

10
app/crontab Normal file
View file

@ -0,0 +1,10 @@
# Point-Tools
# Subscriptions
# Primary subscribers
*/10 * * * * flock -n /tmp/point_tools_sub_update.lock timeout 300 /usr/bin/php /var/www/point-tools/current/app/console point:update:subscriptions --env=prod
# App users
0 0 * * * flock -n /tmp/point_tools_sub_update_all.lock timeout 3600 /usr/bin/php /var/www/point-tools/current/app/console point:update:subscriptions --all-users --env=prod
# Other
# Restore users deleted by mistake
0 0 */7 * * flock -n /tmp/point_tools_restore_users.lock timeout 300 /usr/bin/php /var/www/point-tools/current/app/console point:users:restore --env=prod