From 64bfa32b4a2a4250cb7712840e1fc526bfdd8c73 Mon Sep 17 00:00:00 2001 From: Bram Date: Sun, 27 Jul 2025 16:24:18 +0200 Subject: [PATCH] kanker gedoe --- Dockers/remote-laravel-container/Dockerfile | 3 +++ Dockers/remote-laravel-container/entrypoint.sh | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockers/remote-laravel-container/Dockerfile b/Dockers/remote-laravel-container/Dockerfile index 7bf08c2..485a70b 100644 --- a/Dockers/remote-laravel-container/Dockerfile +++ b/Dockers/remote-laravel-container/Dockerfile @@ -31,6 +31,9 @@ RUN usermod -aG sudo root RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ apt-get install -y nodejs +# Install PM2 globally +RUN npm install -g pm2 + # # Switch to Fish shell # SHELL [ "fish", "--command" ] # RUN chsh -s /usr/bin/fish diff --git a/Dockers/remote-laravel-container/entrypoint.sh b/Dockers/remote-laravel-container/entrypoint.sh index 7e89bac..11ec1fc 100644 --- a/Dockers/remote-laravel-container/entrypoint.sh +++ b/Dockers/remote-laravel-container/entrypoint.sh @@ -92,6 +92,6 @@ sed -i "s/^ nodename:.*/ nodename: $HOSTNAME/" "$CONFIG_FILE" # Start the cron service service cron start nohup teleport start & - -# Start the application with Laravel serve command -exec php artisan serve --host=0.0.0.0 --port=8000 +z +# Start the application with pm2 +exec pm2-runtime "php -t public -S 0.0.0.0:8000"