KTVManager_Backend/run_docker.sh
Karl 2a49e280c2
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m14s
working?
2025-07-14 15:48:05 +01:00

10 lines
329 B
Bash

#!/bin/bash
if [ -f VERSION ]; then
echo "Version: $(cat VERSION)"
fi
# Extract port from config file
PORT=$(python -c "from ktvmanager.config import ProductionConfig; print(ProductionConfig.PORT)")
echo "Starting in production mode on port $PORT..."
/opt/venv/bin/gunicorn --bind 0.0.0.0:$PORT "ktvmanager.main:create_app"