Merge pull request #33 from jkaninda/7.2

Fix Supervisor config
This commit is contained in:
2022-12-05 12:46:21 +02:00
committed by GitHub

View File

@@ -15,9 +15,6 @@ if [ -f /var/www/html/artisan ]; then
TASK=/etc/supervisor/conf.d/laravel-worker.conf
touch $TASK
cat > "$TASK" <<EOF
[supervisord]
nodaemon=true
user=www-data
[program:Laravel-scheduler]
process_name=%(program_name)s_%(process_num)02d
command=/bin/sh -c "while [ true ]; do (php /var/www/html/artisan schedule:run --verbose --no-interaction &); sleep 60; done"