All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 1m14s
10 lines
329 B
Bash
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" |