mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
8 lines
321 B
Bash
Executable File
8 lines
321 B
Bash
Executable File
#!/bin/bash
|
|
echo "Starting backend..."
|
|
cd "${NETALERTX_APP}" || exit
|
|
# Change user to netalertx
|
|
export PYTHONPATH="${NETALERTX_SERVER}:${NETALERTX_APP}"
|
|
# 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)
|