-
Notifications
You must be signed in to change notification settings - Fork 7
Testing out a new tree created with propinquity
Benjamin Redelings edited this page Feb 18, 2019
·
4 revisions
These are hacky draft instructions by BDR outlining some of the steps for deploying a test version of the synthesis tree on ot39. They are not really executable as is. Possibly you could replace ot39 with ot38 and it would work, but I have not tried it.
VERSION=10.5
OPENTREE_LOCAL=$HOME/Devel/OpenTree
ARTIFACT_DIR=${OPENTREE_LOCAL}/synth-runs/10.5
#1. Build a tree using propinquity/build_at_dir.sh <config> ${ARTIFACT_DIR}
The config file must specify a version that is newer than all other versions currently
being served by ot39. Alternatively, you could delete the artifacts from the other
versions, but lets not do that.
#2. Copy files to correct place on ot39
HOST=ot39.opentreeoflife.org
OPENTREE_REMOTE=Applications/OpenTree
SYNTH_PAR_REMOTE=${OPENTREE_REMOTE}/synth-par
cp -a ${ARTIFACT_DIR} opentree${VERSION}
tar -zcf opentree${VERSION}_output.tgz opentree${VERSION}
scp opentreeVERSION_output.tgz ${HOST}:${SYNTH_PAR_REMOTE}/
ssh ${HOST} "cd ${SYNTH_PAR_REMOTE}; tar -zxf opentree10.5_output.tgz"
#3. Restart server
cd ${OPENTREE_LOCAL}/germinator/deploy
./push.sh -c ../../deployed-systems/development/ot39.config otcetera
#4. Make us actually serve the correct version!
ssh ${HOST}
cd repo/opentree/webapp/static/statistics
nano synthesis.json # change the version of the latest update to ${VERSION}
# That is how the webapp decides which version to serve.