diff --git a/server/.gitignore b/server/.gitignore index 1842af95c8519e0cf8c9086b3a2f5e20c98ebb14..7ac0fa2be364bab926e1a195a3776ef1f113d405 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 0000000000000000000000000000000000000000..e1064f7bc72014ceba0db978ba57340c40597c27 --- /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 ###