2025-07-14 14:09:53 +01:00
|
|
|
#!/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..."
|
2025-07-14 15:48:05 +01:00
|
|
|
/opt/venv/bin/gunicorn --bind 0.0.0.0:$PORT "ktvmanager.main:create_app"
|