3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

refactor: change how DEBUG behaves in prod

The env var now only affects the bot container, not the API.
This is because we don't currently need this extra debug information
for the API.

For the bot, with DEBUG set, the bot container will now start and do
nothing. To start the bot in this container in debug mode, open a
shell into the container and run the start-bot-prod-debug script
manually. This change was made to allow more control over what
profiling scripts and other things are run in the debug environment.
This commit is contained in:
Dragory 2023-06-26 19:35:19 +00:00
parent 1734ba4ac9
commit 29a1161c05
No known key found for this signature in database
3 changed files with 6 additions and 28 deletions

View file

@ -58,7 +58,8 @@ services:
- ./:/zeppelin
environment:
DEBUG: ${DEBUG-}
command: ["/bin/bash", "/zeppelin/docker/production/start-api.sh"]
working_dir: /zeppelin/backend
command: ["npm", "run", "start-api-prod"]
bot:
build: