mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 09:05:52 +02:00
Renamed demo environment to docker
This commit is contained in:
parent
a128f40358
commit
49d7a527f5
5 changed files with 6 additions and 6 deletions
1
.env.docker
Normal file
1
.env.docker
Normal file
|
@ -0,0 +1 @@
|
|||
APP_DEBUG=0
|
|
@ -49,8 +49,8 @@ USER www-data
|
|||
RUN composer install -a --no-dev && composer clear-cache
|
||||
RUN yarn install && yarn build && yarn cache clean && rm -rf node_modules/
|
||||
|
||||
# Use demo env to output logs to stdout
|
||||
ENV APP_ENV=demo
|
||||
# Use docker env to output logs to stdout
|
||||
ENV APP_ENV=docker
|
||||
ENV DATABASE_URL="sqlite:///%kernel.project_dir%/uploads/app.db"
|
||||
|
||||
USER root
|
||||
|
|
|
@ -60,7 +60,7 @@ when@prod:
|
|||
channels: [deprecation]
|
||||
path: "%kernel.logs_dir%/%kernel.environment%_deprecations.log"
|
||||
|
||||
when@demo:
|
||||
when@docker:
|
||||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
|
|
|
@ -15,6 +15,5 @@ services:
|
|||
environment:
|
||||
# Put SQLite database in our mapped folder. You can configure some other kind of database here too.
|
||||
- DATABASE_URL=sqlite:///%kernel.project_dir%/var/db/app.db
|
||||
# In demo env logs will be redirected to stderr
|
||||
- APP_ENV=demo
|
||||
- APP_DEBUG=0
|
||||
# In docker env logs will be redirected to stderr
|
||||
- APP_ENV=docker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue