add new conf example file to run laravel scheduler in php-worker (#1930)

This commit is contained in:
Lan Phan
2019-01-08 14:30:53 +07:00
committed by Shao Yu-Lung (Allen)
parent e6d866b8a6
commit a1bda23cd9
2 changed files with 38 additions and 23 deletions

View File

@ -0,0 +1,8 @@
[program:laravel-scheduler]
process_name=%(program_name)s_%(process_num)02d
command=/bin/sh -c "while [ true ]; do (php /var/www/artisan schedule:run --verbose --no-interaction &); sleep 60; done"
autostart=true
autorestart=true
numprocs=1
user=laradock
redirect_stderr=true