Update entrypoint.sh

This commit is contained in:
emrullahardc 2023-06-13 01:21:28 +03:00 committed by GitHub
parent d95bd3bf4d
commit 1f64785719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,10 +19,8 @@ fi
role=${CONTAINER_ROLE:-app}
if [ "$role" = "app" ]; then
if [ "$INSTALLED" = "false" ]; then
echo ".env installed is false starting installing"
php artisan install --ready
fi
exec docker-php-entrypoint "$@"
elif [ "$role" = "queue" ]; then
echo "Running the queue ... "
@ -30,4 +28,4 @@ elif [ "$role" = "queue" ]; then
elif [ "$role" = "websocket" ]; then
echo "Running the websocket server ... "
php artisan websockets:serve
fi
fi