No description
Find a file
Claude 3fd244a5be
Add Ant deploy target, mirroring xzpect-timer's build.xml pattern
install-scripts(@host) syncs upgrade.sh/upgrade-cmds.sh/upgrade-funs.sh/
tomcat_ctl.sh/restart.sh to the server so it never runs a stale
hand-copied version; deploy(@host) runs that first, then sshexecs
upgrade.sh itself, then checks the site responds.

Reuses the sportrum webapp project's own account (sportrum@host:2222,
same key as its release-all target) rather than a separate dedicated
deploy user like xzpect-timer's xztimer - upgrade.sh needs real
privilege (Tomcat control, pg_dump, DB migrations via the container's
NOPASSWD sudo), so a second account would need the same rights anyway.
This project's build.xml never builds or uploads sportrum.war/
manager.zip itself; that's release-all's job in the webapp project -
this one only does the actual deploy once those are already staged.

Uses the -lib lib.build / checked-in jsch jar approach for the JSch
classpath gotcha, same as xzpect-timer, rather than the webapp
project's ant-classloadertask trick - that one's JDK-8-only, and this
build isn't guaranteed to run under the same JDK as the webapp's.

Verified end-to-end short of an actual server: ant -p and ant help
both hit the documented pre-flight failures correctly (missing key,
missing JSch on classpath) before -lib is added, succeed after; with
a real generated key, sshexec correctly gets past key-parsing and
attempts a real connection.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tj4SF2BGFxgoRYrCAzNpDb
2026-09-30 18:41:12 +00:00
lib.build Add Ant deploy target, mirroring xzpect-timer's build.xml pattern 2026-09-30 18:41:12 +00:00
.gitattributes Import existing manual deploy scripts as a starting point 2026-09-29 17:04:18 +00:00
.gitignore Add Ant deploy target, mirroring xzpect-timer's build.xml pattern 2026-09-30 18:41:12 +00:00
build.xml Add Ant deploy target, mirroring xzpect-timer's build.xml pattern 2026-09-30 18:41:12 +00:00
emergency-storeall.sh Add self-throttling schedule and request throughput to emergency-storeall.sh 2026-09-30 16:17:08 +00:00
nightly-storeall.sh Rework nightly-storeall.sh for cron-driven scheduling, add maintenance_log 2026-09-30 14:11:11 +00:00
restart.sh Parameterize runcmd to support commands beyond storeall 2026-09-29 20:51:47 +00:00
tomcat_ctl.sh Import existing manual deploy scripts as a starting point 2026-09-29 17:04:18 +00:00
upgrade-cmds.sh Prune short-lived upgrade backups after 2 weeks 2026-09-30 18:20:04 +00:00
upgrade-funs.sh Rework nightly-storeall.sh for cron-driven scheduling, add maintenance_log 2026-09-30 14:11:11 +00:00
upgrade.sh Parameterize runcmd to support commands beyond storeall 2026-09-29 20:51:47 +00:00