File tree 2 files changed +7
-9
lines changed
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
26
26
ENV APP_ENV production
27
27
ENV APP_DEBUG false
28
28
ENV 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
34
32
ENV PHP_ERRORS_STDERR 1 # Send PHP errors to stderr for Docker logging
35
33
ENV RUN_SCRIPTS 1 # Enable execution of scripts in /scripts directory
36
34
ENV 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:
77
77
- key : MAIL_FROM_NAME
78
78
value : " ${APP_NAME}"
79
79
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.
84
84
85
85
# Persistent disk for Laravel storage
86
86
disk : # Valid per serverService schema, referencing "disk" definition
You can’t perform that action at this time.
0 commit comments