How To Mimic Xojo Cloud Build Behaviour
With the Xojo Script language you can build scripts which are either executed before of after the build of an application. We are using this feature — in combination with a small bash script — to mimic the deployment to the Xojo Cloud with an own server.


Linux Script
Below is the content of the ‘deploy.sh’:
#!bin/sh
echo "STOP Services"
ssh user@example.com 'sudo systemctl stop nuage.service'
rsync -avz --delete /Users/jmu/xojo/nuage/Builds\ -\ nuage/Linux\ 64\ bit/nuage/ user@example.com:/var/www/html/nuage/
echo "START Services"
ssh user@example.com 'sudo systemctl start nuage.service'
exit 0
Comments
Sign in or become a blog.xojoDOCs.com member to join the conversation.
Just enter your email below to get a log in link.