mirror of
https://github.com/wallabag/wallabag.git
synced 2026-03-25 03:37:37 +01:00
Introduce .env with DATABASE_URL defaulting to a local SQLite file and commented-out MySQL and PostgreSQL alternatives for local development. Add .env.test with the test-specific SQLite path and commented alternatives for running the test suite against other databases. Add .env.test.local to .gitignore so per-developer test database overrides are not accidentally committed.
11 lines
517 B
Bash
11 lines
517 B
Bash
# Default: SQLite — no server required
|
|
DATABASE_URL=sqlite:///%kernel.project_dir%/data/db/wallabag.sqlite
|
|
# MariaDB / MySQL
|
|
#DATABASE_URL=mysql://root:root@127.0.0.1:3306/wallabag?charset=utf8mb4
|
|
# MariaDB / MySQL (Docker Compose)
|
|
#DATABASE_URL=mysql://root:wallaroot@mariadb:3306/wallabag?charset=utf8mb4
|
|
# PostgreSQL
|
|
#DATABASE_URL=postgresql://wallabag:wallapass@127.0.0.1:5432/wallabag?charset=utf8
|
|
# PostgreSQL (Docker Compose)
|
|
#DATABASE_URL=postgresql://wallabag:wallapass@postgres:5432/wallabag?charset=utf8
|