fix exit container
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user