refs #734 use environment variables in .env files and disable web depuration toolbar

ticket-769
Luis Gerardo Romero Garcia 2024-09-16 12:29:32 +02:00
parent 940f1876db
commit 397fffb252
3 changed files with 4 additions and 4 deletions

4
.env
View File

@ -15,10 +15,10 @@
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
###> symfony/framework-bundle ###
APP_ENV=dev
APP_ENV=${APP_ENV:-dev}
APP_SECRET=31180fc3aa11818328106d014be0108c
OGGIT_URL=${OGGIT_URL}
###< symfony/framework-bundle ###
OGGIT_URL=http://127.0.0.1:5000
###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml

View File

@ -1,6 +1,6 @@
when@dev:
web_profiler:
toolbar: true
toolbar: false
intercept_redirects: false
framework:

View File

@ -4,7 +4,7 @@
# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
OGGIT_URL: '%env(OGGIT_URL)%'
services:
# default configuration for services in *this* file
_defaults: