From d700e999fe5cad25fb831b450a2ed9b631d5ca24 Mon Sep 17 00:00:00 2001 From: Maxime Gross Date: Wed, 10 Sep 2025 14:42:49 +0200 Subject: [PATCH 1/2] Improve README (composer without dev deps; APP_ENV=prod env variable) --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 747b142..b0d785b 100644 --- a/README.md +++ b/README.md @@ -68,9 +68,11 @@ Dependencies 1. Retrieve the dependencies: ``` - composer install + composer install --no-dev ``` + Remove `--no-dev` if you plan to install Davis locally for e.g. development purposes. + 2. At least put the correct credentials to your database (driver and url) in your `.env.local` file so you can easily create the necessary tables. 3. Run the migrations to create all the necessary tables: @@ -93,6 +95,10 @@ Create your own `.env.local` file to change the necessary variables, if you plan > > If your installation is behind a web server like Apache or Nginx, you can setup the env vars directly in your Apache or Nginx configuration (see below). Skip this part in this case. +> [!CAUTION] +> +> In a production environnement, the `APP_ENV` variable MUST be set to `prod`. + **a. The database driver and url** (_you should already have it configured since you created the database previously_) ```shell From 92f0b69be29750874f7b8a8a9e3301ed67153d30 Mon Sep 17 00:00:00 2001 From: Maxime Gross Date: Wed, 10 Sep 2025 14:47:14 +0200 Subject: [PATCH 2/2] Explain a bit why APP_ENV=prod is really needed in a prod env --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b0d785b..9e7b602 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ Create your own `.env.local` file to change the necessary variables, if you plan > [!CAUTION] > -> In a production environnement, the `APP_ENV` variable MUST be set to `prod`. +> In a production environnement, the `APP_ENV` variable MUST be set to `prod` to prevent leaking sensitive data. **a. The database driver and url** (_you should already have it configured since you created the database previously_)