Previously the script only ran port resolution when no compose containers were already running, on the assumption that running containers meant the persisted port was still ours. On the shared optical-dev server that's wrong: another app can grab a port between our deploys, leaving us with a stale .env value that fails to bind. Now find_free_port treats a port as "available for us" if either nothing is listening, or one of our own compose containers is publishing it (so re-deploys don't shuffle). Other-app listeners trigger a re-pick and a warning. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| apache-adeo.conf.tmpl | ||
| deploy.sh | ||