mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-07-27 03:31:35 +00:00
Added docker environment emulating a manual installed Part-DB on debian
Used to debug issues like #1423
This commit is contained in:
parent
805319c6b0
commit
90a5ab74ff
5 changed files with 176 additions and 0 deletions
11
.docker/debian-manual-guide/env.local
Normal file
11
.docker/debian-manual-guide/env.local
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# Bind-mounted over /var/www/partdb/.env.local inside the container only.
|
||||
# The host's real .env.local (dev, MySQL on 127.0.0.1) is never touched or
|
||||
# read - this guarantees APP_ENV/DATABASE_URL are correct for BOTH Apache/
|
||||
# mod_php web requests and CLI (console/composer) commands, without relying
|
||||
# on environment variables being propagated into Apache's subprocess env
|
||||
# (which is what caused the "WebProfilerBundle" dev-bundle error: web
|
||||
# requests were silently falling back to the host .env.local's APP_ENV=dev,
|
||||
# while --no-dev composer install never installed that bundle).
|
||||
APP_ENV=prod
|
||||
APP_SECRET=0000000000000000000000000000000000000000000000000000000000debug
|
||||
DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db"
|
||||
Loading…
Add table
Add a link
Reference in a new issue