its 7am i havent slept i have no idea
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost; # host header (not used locally)
|
||||
server_name _; # host header (not used locally)
|
||||
root /var/www/html/public; # Symfony's public/ dir (front controller)
|
||||
|
||||
location / {
|
||||
@@ -11,7 +11,7 @@ server {
|
||||
location ~ \.php$ {
|
||||
# Forward PHP requests to php-fpm service
|
||||
include fastcgi_params;
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_pass tonehaus:9000;
|
||||
# Use resolved path to avoid path traversal issues
|
||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
||||
|
||||
@@ -8,6 +8,21 @@ require_app_secret() {
|
||||
fi
|
||||
}
|
||||
|
||||
install_runtime() {
|
||||
if [ -f vendor/autoload_runtime.php ] && [ "${FORCE_COMPOSER_INSTALL:-0}" != "1" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
echo "Installing Composer dependencies..."
|
||||
su-exec www-data composer install \
|
||||
--no-dev \
|
||||
--prefer-dist \
|
||||
--no-interaction \
|
||||
--no-progress
|
||||
}
|
||||
|
||||
install_runtime
|
||||
|
||||
if [ -f bin/console ]; then
|
||||
require_app_secret
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user