Read database, host and SMTP settings from a .env file

- gem dotenv loads .env (and .env.<environment>[.local]) at startup; real
  environment variables take precedence.
- database.yml takes host, port, user, password and name from
  NUMOLUS_DATABASE_*; the database is called numolus by default.
- .env.example documents every setting; .env itself stays ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
wkh
2026-09-28 20:57:43 +02:00
co-authored by Claude Opus 5.5
parent ed099cfbda
commit f22963a666
6 changed files with 49 additions and 13 deletions
+1
View File
@@ -26,4 +26,5 @@ node_modules
!/storage/.keep
/config/master.key
/.env*
!/.env.example
/vendor/gems