Skip to content

Commit

Permalink
doc(script): add some documentation to script
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Leclerc <[email protected]>
  • Loading branch information
sylvlecl committed Oct 14, 2024
1 parent 96c82f3 commit 67002ae
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/bin/bash
#
# Starter script used in docker image.
#
# Usages are:
#
# 1. ./start.sh
# Starts antares web server with gunicorn.
# Number of workers is defined by GUNICORN_WORKERS env variable,
# or equal to 2*cpu + 1.
#
# 2. ./start.sh <module>
# Where module is for example "watcher".
# Starts one of the backend services (watcher, garbage collector, ...)
#
# 3. ./start.sh --no-gunicorn
# Starts multiple workers on different ports. You are expected to
# configure some load balancing upstream, in that case.
# Number of workers is defined by ANTARES_NB_WORKERS env variable,
# or equal to 2*cpu + 1.

set -e

Expand Down Expand Up @@ -39,4 +58,4 @@ elif [ "$use_uvicorn" = true ]; then
else
export PYTHONPATH=$BASE_DIR
python3 $BASE_DIR/antarest/main.py -c $ANTAREST_CONF --module "$1"
fi
fi

0 comments on commit 67002ae

Please sign in to comment.