As the name implies, thess-update
command brings your deployments up to the latest version of Sovereign Stack.
ss-update
is a bash alias for update.sh
. This script performs the following steps:
- Switch the code base to the version of Sovereign Stack that is documented on the remote endpoint under
/home/ubuntu/.ss-githead
. That way the backup and down scripts target the deployed version of Sovereign Stack. - Runs
ss-deploy
to grab the latest backup and store it in your SSME. It uses the--stop
flag to ensure services ARE NOT brought back online. This especially includes the BTC Pay Server and core lightning node. - Remote VMs are stoped and deleted. By default all user data is persisted in filesystem-based ZFS storage volume.
- Switch the code base to the most current Sovereign Stack.
- Deploy fresh VMs using the latest code. User data is mounted into the new VMs based on the fresh codebase.
- Start services.
💡
Idea: Create a
ss-migrate
scripts which takes a source and target remote and a source and target project. This would allow you to migrate your websites and node to a different remote (e.g., a new server on a different continent).Doing things this way is more akin to an immutable infrastructure approach to provisioning.
That's it! All your websites and bitcoin node have been migrated to the latest version of Sovereign Stack and all your services are back online. Sweet!
Appreciate this documentation and creative solutions? Consider donating to the monthly crowdfund.