mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 06:31:44 -07:00
Information on default config and entrypoints for debug
This commit is contained in:
@@ -3,5 +3,11 @@ echo "Starting backend..."
|
||||
cd "${NETALERTX_APP}" || exit
|
||||
# Change user to netalertx
|
||||
export PYTHONPATH="${NETALERTX_SERVER}:${NETALERTX_APP}"
|
||||
|
||||
EXTRA_PARAMS=""
|
||||
if [ -f /services/config/python/backend-extra-launch-parameters ]; then
|
||||
EXTRA_PARAMS=$(cat /services/config/python-backend-extra-launch-parameters)
|
||||
fi
|
||||
|
||||
# Start the backend, teeing stdout and stderr to log files and the container's console
|
||||
python3 -m server > >(tee /app/log/stdout.log) 2> >(tee /app/log/stderr.log >&2)
|
||||
python3 ${EXTRA_PARAMS} -m server > >(tee /app/log/stdout.log) 2> >(tee /app/log/stderr.log >&2)
|
||||
|
||||
Reference in New Issue
Block a user