File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,9 @@ FROM richarvey/nginx-php-fpm:3.1.6 AS app
2626ENV APP_ENV production
2727ENV APP_DEBUG false
2828ENV LOG_CHANNEL stderr
29- ENV APP_KEY ${APP_KEY} # Will be provided by Render's environment
30-
31- # Configure richarvey/nginx-php-fpm specific settings
32- ENV SKIP_COMPOSER 1 # We run composer via the deploy script
33- ENV WEBROOT /var/www/html/public # Laravel' s public directory
29+ ENV APP_KEY ${APP_KEY}
30+ ENV SKIP_COMPOSER 1
31+ ENV WEBROOT /var/www/html/public
3432ENV PHP_ERRORS_STDERR 1 # Send PHP errors to stderr for Docker logging
3533ENV RUN_SCRIPTS 1 # Enable execution of scripts in /scripts directory
3634ENV REAL_IP_HEADER 1 # If behind a proxy, trust X-Forwarded-For
Original file line number Diff line number Diff line change @@ -77,10 +77,10 @@ services:
7777 - key : MAIL_FROM_NAME
7878 value : " ${APP_NAME}"
7979
80- # Start command: runs our deploy script, then starts the main services .
81- # Assumes the base Docker image (ric_harvey /nginx-php-fpm) has /start .sh as its CMD,
82- # which typically runs supervisord to manage Nginx and PHP-FPM.
83- startCommand : " /usr/local/bin/deploy.sh && /start.sh "
80+ # Start command: The Docker image's CMD ["/start.sh"] will be used by default .
81+ # The /start.sh script from richarvey /nginx-php-fpm will execute our /scripts/00-laravel-deploy .sh
82+ # (because ENV RUN_SCRIPTS 1 is set) and then start Nginx & PHP-FPM.
83+ # Thus, no explicit startCommand override is needed here.
8484
8585 # Persistent disk for Laravel storage
8686 disk : # Valid per serverService schema, referencing "disk" definition
You can’t perform that action at this time.
0 commit comments