Hi,
We have a init file that can be used for Hetzner instances.
We have still to update it for Ubuntu 22 - currently you can do an upgrade after installation.
What we often do is:
- The above script
- Checkout the website repo on the correct branch into ~zotonic/
- Symlink from ~zotonic/zotonic/apps_user/ to the website repo
- We also make sure that there is a local priv/zotonic_site.config or that in priv/config.d/ there is a config with the local information.
- Just run Zotonic from ~zotonic/zotonic with "bin/zotonic start"
You can also add this start command to the startup scripts of the server, so that after reboot the site will start.
As the site is now checked out from git, a deploy is just a click on the update button in /admin/status
We periodically just update zotonic from upstream, also with git pull.
Normally this can be done as a hot code upgrade, otherwise a quick stop, pull, make, start will do the trick.
The above is the lazy and low-tech approach.
At Driebit they work with Docker images.
And on our wish list for this year is to start making real releases (looking into some rebar3 issue for that…)
If you enable and configure mod_filestore and mod_backup, then you can have extra backups of all your data on a storage box.
(Besides the backups that Hetzner is doing for you.)
If the rebar3 issue is resolved then we can release Zotonic 1.0 and will update all Hex packages.
Cheers!
Marc