fix exit container
All checks were successful
Build, Push and Deploy / build-and-deploy (push) Successful in 3m15s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s

This commit is contained in:
eko
2026-03-28 19:30:40 +07:00
parent 2997e30f73
commit eca25818b9
4 changed files with 10 additions and 23 deletions

View File

@@ -74,11 +74,13 @@ echo "========================================"
echo "Setup complete. Starting application..."
echo "========================================"
# Start the application
# Start the application with proper error handling
if [ "$MODE" = "dev" ]; then
echo "Starting PHP built-in server on port 8000..."
exec php artisan serve --host=0.0.0.0 --port=8000
# Use exec with error capture
exec php artisan serve --host=0.0.0.0 --port=8000 2>&1 | tee -a /var/log/php-server.log
else
echo "Starting PHP-FPM on port 9000..."
exec php-fpm
# Ensure PHP-FPM is properly configured
exec php-fpm -F
fi