mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +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 composer install -a --no-dev && composer clear-cache
|
||||||
RUN yarn install && yarn build && yarn cache clean && rm -rf node_modules/
|
RUN yarn install && yarn build && yarn cache clean && rm -rf node_modules/
|
||||||
|
|
||||||
# Use demo env to output logs to stdout
|
# Use docker env to output logs to stdout
|
||||||
ENV APP_ENV=demo
|
ENV APP_ENV=docker
|
||||||
ENV DATABASE_URL="sqlite:///%kernel.project_dir%/uploads/app.db"
|
ENV DATABASE_URL="sqlite:///%kernel.project_dir%/uploads/app.db"
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
|
@ -60,7 +60,7 @@ when@prod:
|
||||||
channels: [deprecation]
|
channels: [deprecation]
|
||||||
path: "%kernel.logs_dir%/%kernel.environment%_deprecations.log"
|
path: "%kernel.logs_dir%/%kernel.environment%_deprecations.log"
|
||||||
|
|
||||||
when@demo:
|
when@docker:
|
||||||
monolog:
|
monolog:
|
||||||
handlers:
|
handlers:
|
||||||
main:
|
main:
|
||||||
|
|
|
@ -15,6 +15,5 @@ services:
|
||||||
environment:
|
environment:
|
||||||
# Put SQLite database in our mapped folder. You can configure some other kind of database here too.
|
# 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
|
- DATABASE_URL=sqlite:///%kernel.project_dir%/var/db/app.db
|
||||||
# In demo env logs will be redirected to stderr
|
# In docker env logs will be redirected to stderr
|
||||||
- APP_ENV=demo
|
- APP_ENV=docker
|
||||||
- APP_DEBUG=0
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue