Learning Xojo

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.

The Xojo Script has to be positioned after the Build Step on Linux
Example Code of the Script (executing the local Shell script)

Linux Script

Below is the content of the ‘deploy.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


Sign in or become a blog.xojoDOCs.com member to join the conversation.
Just enter your email below to get a log in link.

You’ve successfully subscribed to blog.xojoDOCs.com
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Your link has expired
Success! Check your email for magic link to sign-in.