Commit 3daf2376 authored by Romain Loth's avatar Romain Loth

restore TCP socket instead of unix socket (because more practical through docker)

parent 92efc440
......@@ -18,10 +18,10 @@ fi
# anyway we always need a simple web server to run the services
echo "binding gunicorn to unix:/tmp/comex.sock"
gunicorn -b unix:/tmp/comex.sock services.main:app --workers 2
# echo "binding gunicorn to unix:/tmp/comex.sock"
# gunicorn -b unix:/tmp/comex.sock services.main:app --workers 2
# export COMEX_HOST=$(grep -oP '(?<=COMEX_HOST=).*' config/parametres_comex.ini)
# export COMEX_PORT=$(grep -oP '(?<=COMEX_PORT=).*' config/parametres_comex.ini)
# echo "binding gunicorn to $COMEX_HOST:$COMEX_PORT"
# gunicorn -b $COMEX_HOST:$COMEX_PORT services.main:app --workers 8
export COMEX_HOST=$(grep -oP '(?<=COMEX_HOST=).*' config/parametres_comex.ini)
export COMEX_PORT=$(grep -oP '(?<=COMEX_PORT=).*' config/parametres_comex.ini)
echo "binding gunicorn to $COMEX_HOST:$COMEX_PORT"
gunicorn -b $COMEX_HOST:$COMEX_PORT services.main:app --workers 8
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment