Commit5b8ce49unknown_key
fix(deploy): default gluecron port 3001 (Crontech owns 3000 on shared box)
fix(deploy): default gluecron port 3001 (Crontech owns 3000 on shared box) Root cause of the gluecron.com EADDRINUSE crash-loop. The bare-metal box (45.76.171.37) hosts both Crontech and Gluecron. Crontech's web server binds port 3000. The gluecron deploy script defaulted to 3000 too, producing a 4-day systemd restart counter at 5810. Fix: default to 3001. Caddy still resolves gluecron.com to whichever port the env file specifies — operators just need their Caddyfile entry in sync with PORT in /etc/gluecron.env. For an existing box already on the broken default: sed -i 's/^PORT=.*/PORT=3001/' /etc/gluecron.env sed -i 's|reverse_proxy localhost:3000|reverse_proxy localhost:3001|' /etc/caddy/Caddyfile systemctl restart gluecron && systemctl reload caddy
1 file changed+1−15b8ce4916018c2e50a30b90fc4e0baf4c5f9ea09
1 changed file+1−1
Modifiedscripts/deploy-crontech.sh+1−1View fileUnifiedSplit
@@ -28,7 +28,7 @@ set -euo pipefail
2828
2929REPO_DIR=${REPO_DIR:-/opt/gluecron}
3030BARE_REPOS=${BARE_REPOS:-/data/repos}
31PORT=${PORT:-3000}
31PORT=${PORT:-3001}
3232SITE_DOMAIN=${SITE_DOMAIN:-gluecron.com}
3333SITE_ADMIN_USERNAME=${SITE_ADMIN_USERNAME:-ccantynz-alt}
3434
3535