No description
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 |
||
|---|---|---|
| lib.build | ||
| .gitattributes | ||
| .gitignore | ||
| build.xml | ||
| emergency-storeall.sh | ||
| nightly-storeall.sh | ||
| restart.sh | ||
| tomcat_ctl.sh | ||
| upgrade-cmds.sh | ||
| upgrade-funs.sh | ||
| upgrade.sh | ||