#!/usr/bin/env bash # shell-gen - Linux shell script generator web UI # Run on host as a foreground process (development) or via systemd (production). set -euo pipefail cd "$(dirname "$0")" export PORT="${PORT:-5099}" export FLASK_ENV="${FLASK_ENV:-production}" echo "Starting shell-gen on port $PORT (PID $$)..." exec python3 app.py