fix: ensure permissions are set and storage dir is scaffolded

This commit is contained in:
hackerESQ
2025-01-30 18:48:34 -06:00
parent cac2460153
commit a39f255e52
4 changed files with 60 additions and 36 deletions
+10 -5
View File
@@ -2,33 +2,38 @@
nodaemon=true
user=root
pidfile=/var/run/supervisord.pid
logfile=/var/log/supervisor/supervisord.log
[program:nginx]
command=nginx -g 'daemon off;'
autostart=true
autorestart=true
redirect_stderr=true
redirect_stdout=true
[program:php]
command=php-fpm -F
autostart=true
autorestart=true
redirect_stderr=true
redirect_stdout=true
[program:scheduler]
command=php artisan schedule:work
user=www-data
autorestart=true
redirect_stderr=true
redirect_stdout=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[program:queue-worker]
command=php artisan queue:work --sleep=3 --tries=1 --memory=256 --timeout=3600
process_name=%(program_name)s_%(process_num)02d
command=php artisan queue:work --sleep=3 --tries=1 --memory=256 --timeout=3600
user=www-data
autorestart=true
redirect_stderr=true
redirect_stdout=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
numprocs=2
stopasgroup=true
killasgroup=true
[supervisorctl]