How To Mimic Xojo Cloud Build Behaviour

How To Mimic Xojo Cloud Build Behaviour

With the Xojo Script language, you can build scripts which are either executed before or 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 its 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