Set assets base path
This commit is contained in:
@@ -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
2
.env
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user