mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-21 07:43:45 +02:00
adding supervisord for queue workers
Added supervisord to run the queue worker,. moved php-fpm and nginx to supervisord as well.
This commit is contained in:
@@ -34,15 +34,13 @@ do
|
||||
done
|
||||
|
||||
## make sure the db is set up
|
||||
php artisan migrate --seed --force
|
||||
echo -e "Migrating and Seeding DB"
|
||||
php artisan migrate --force
|
||||
php artisan db:seed --force
|
||||
|
||||
echo -e "Done\n"
|
||||
## start cronjobs for the queue
|
||||
echo -e "Starting cron jobs"
|
||||
crond
|
||||
|
||||
## start php-fpm in the background
|
||||
echo -e "Starting php-fpm in the background. \n"
|
||||
php-fpm7 -D
|
||||
echo -e "php-fpm started \n"
|
||||
|
||||
## start webserver
|
||||
echo -e "Starting nginx in the foreground. \n"
|
||||
nginx -g 'pid /tmp/nginx.pid; daemon off;'
|
||||
echo -e "Starting supervisord"
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user