crontab added for future deployment integration.
This commit is contained in:
parent
41079a29a8
commit
845097f7ea
|
@ -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
|
||||
```
|
||||
|
||||
See [`app/crontab`](https://bitbucket.org/skobkin/point-tools/src/master/app/crontab) for more advanced usage.
|
||||
|
||||
## Setting Telegram webhook (to enable bot)
|
||||
|
||||
```bash
|
||||
|
|
10
app/crontab
Normal file
10
app/crontab
Normal 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
|
||||
|
Loading…
Reference in a new issue