mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
Migrate queues to Horizon (#621)
This commit is contained in:
@ -209,7 +209,7 @@ chown -R vito:vito /home/vito
|
||||
export V_WORKER_CONFIG="
|
||||
[program:worker]
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
command=php /home/vito/vito/artisan queue:work --sleep=3 --backoff=0 --queue=default,ssh,ssh-long --timeout=3600 --tries=1
|
||||
command=php /home/vito/vito/artisan horizon
|
||||
autostart=1
|
||||
autorestart=1
|
||||
user=vito
|
||||
|
@ -35,6 +35,10 @@ sudo sed -i "s/php8.2-fpm.sock/php8.4-fpm.sock/g" /etc/nginx/sites-available/vit
|
||||
sudo sed -i '/server\s*{.*/a \ client_max_body_size 100M;' /etc/nginx/sites-available/vito
|
||||
sudo service nginx restart
|
||||
|
||||
echo "Update supervisor configuration"
|
||||
sudo sed -i 's/command=php \/home\/vito\/vito\/artisan queue:work --sleep=3 --backoff=0 --queue=default,ssh,ssh-long --timeout=3600 --tries=1/command=php \/home\/vito\/vito\/artisan horizon/' /etc/supervisor/conf.d/worker.conf
|
||||
sudo service supervisor restart
|
||||
|
||||
echo "Fetching the latest release"
|
||||
git fetch
|
||||
git checkout 3.x
|
||||
|
Reference in New Issue
Block a user