Set assets base path

This commit is contained in:
2024-06-05 18:53:02 +02:00
parent 8789da089d
commit 12f3b91044
3 changed files with 7 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ steps:
environment:
# Disable HTTPS redirection as it served by a reverse proxy
CODEFIRST_CLIENTDRONE_ENV_SERVER_NAME: http://codefirst.iut.uca.fr
CODEFIRST_CLIENTDRONE_ENV_CORS_ALLOW_ORIGIN: https://codefirst.iut.uca.fr
CODEFIRST_CLIENTDRONE_ENV_ASSETS_BASE_PATH: /containers/clementfreville2-herbarium
depends_on:
- docker-image
when:

2
.env
View File

@@ -14,6 +14,8 @@
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
ASSETS_BASE_PATH=/
###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=654d4972fc24500c7b43763fc3b3efa7

View File

@@ -3,6 +3,9 @@ framework:
secret: '%env(APP_SECRET)%'
#csrf_protection: true
assets:
base_path: '%env(ASSETS_BASE_PATH)%'
# Note that the session will be started ONLY if you read or write from it.
session: true