Версия 0.8.2 #6
@ -5,7 +5,10 @@ if [ "$role" = "app" ]; then
|
|||||||
exec unitd --no-daemon --control unix:/var/run/control.unit.sock --user unit --group unit
|
exec unitd --no-daemon --control unix:/var/run/control.unit.sock --user unit --group unit
|
||||||
elif [ "$role" = "queue" ]; then
|
elif [ "$role" = "queue" ]; then
|
||||||
echo "Running the queue..."
|
echo "Running the queue..."
|
||||||
php /var/www/html/artisan queue:work --verbose --sleep=5 --tries=10
|
while [ true ]
|
||||||
|
do
|
||||||
|
php /var/www/html/artisan queue:work --verbose --sleep=5 --tries=10 --max-time=3600
|
||||||
|
done
|
||||||
elif [ "$role" = "websockets" ]; then
|
elif [ "$role" = "websockets" ]; then
|
||||||
echo "Running the websockets..."
|
echo "Running the websockets..."
|
||||||
php /var/www/html/artisan reverb:start --port=9000
|
php /var/www/html/artisan reverb:start --port=9000
|
||||||
|
@ -5,7 +5,10 @@ if [ "$role" = "app" ]; then
|
|||||||
exec unitd --no-daemon --control unix:/var/run/control.unit.sock --user unit --group unit
|
exec unitd --no-daemon --control unix:/var/run/control.unit.sock --user unit --group unit
|
||||||
elif [ "$role" = "queue" ]; then
|
elif [ "$role" = "queue" ]; then
|
||||||
echo "Running the queue..."
|
echo "Running the queue..."
|
||||||
php /var/www/html/artisan queue:work --verbose --sleep=5 --tries=10 --max-time=3600
|
while [ true ]
|
||||||
|
do
|
||||||
|
php /var/www/html/artisan queue:work --verbose --sleep=5 --tries=10 --max-time=3600
|
||||||
|
done
|
||||||
elif [ "$role" = "websockets" ]; then
|
elif [ "$role" = "websockets" ]; then
|
||||||
echo "Running the websockets..."
|
echo "Running the websockets..."
|
||||||
php /var/www/html/artisan reverb:start --port=9000
|
php /var/www/html/artisan reverb:start --port=9000
|
||||||
|
Loading…
Reference in New Issue
Block a user