Jeannot Muller

If you can't explain it simply, you don't understand it well enough.
en de

How To Mimic Xojo Cloud Build Behaviour

2020-08-21 1 min read code xojo jmu

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.

Setup

Linux Script

Below is the content of the ‘deploy.sh’:

1
2
3
4
5
6
7
#!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