From 876f0fcd834ad36ef26b0821f44b46df8d4b9c12 Mon Sep 17 00:00:00 2001 From: Julian PEREZ-RAMIREZ <julian.perez-ramirez@imt-atlantique.net> Date: Sat, 1 Mar 2025 14:22:01 +0100 Subject: [PATCH] avoid ignoring .env file --- server/.gitignore | 2 +- server/web_app/.env | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 server/web_app/.env diff --git a/server/.gitignore b/server/.gitignore index 1842af9..7ac0fa2 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -1,7 +1,7 @@ .DS_Store Thumbs.db -.env +#.env .env.local .env.*.local /.vscode/ diff --git a/server/web_app/.env b/server/web_app/.env new file mode 100644 index 0000000..e1064f7 --- /dev/null +++ b/server/web_app/.env @@ -0,0 +1,24 @@ +# In all environments, the following files are loaded if they exist, +# the latter taking precedence over the former: +# +# * .env contains default values for the environment variables needed by the app +# * .env.local uncommitted file with local overrides +# * .env.$APP_ENV committed environment-specific defaults +# * .env.$APP_ENV.local uncommitted environment-specific overrides +# +# Real environment variables win over .env files. +# +# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES. +# https://symfony.com/doc/current/configuration/secrets.html +# +# 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 + +###> symfony/framework-bundle ### +APP_ENV=dev +APP_SECRET= +###< symfony/framework-bundle ### + +###> doctrine/doctrine-bundle ### +DATABASE_URL="mysql://admin:admin_password@db:3306/wishlist_db?serverVersion=9.2.0" +###< doctrine/doctrine-bundle ### -- GitLab