Inserm-IST / MTW-MeSH-Docker

Docker Compose file to manage the build and deployment of MTW-MeSH
1 stars 0 forks source link

Turn debug mode off by default #2

Closed JulienBacquart closed 1 month ago

filak commented 1 month ago

The debug mode is always OFF when using the mtw_server.py and mtw_worker.py

JulienBacquart commented 1 month ago

Hi @filak ,

If you look into the Compose file, you can see that I launch MTW with the following command:

python mtw-server.py --host 0.0.0.0 $${DEBUG} & python mtw-worker.py $${DEBUG}

These issues are more for me to remember to clean up the stuff I left during the development phase, and making it production ready.

In this case I needed to test what is the default value of an env variable if it's not set (because it's commented):

    environment:
      # - DEBUG=--debug

Turns out it's a blank string, so it works.