Open adixon opened 7 months ago
Some work on this on glatthaarti, Nov 2023: setup vdeploy.path and vdeploy.service in /etc/systemd/system
If you add a .env file into /var/www/vsite/pending, it'll run /usr/local/bin/next-deploy.sh
For my mayfly service, we'll want to monitor /var/www/vsite/mayfly and do something a little different (maybe just run the /usr/local/bin/mayfly-generate with the right arguments and pipe it to the pending directory?).
I'd like to set up some automation to allow a visitor to sign up for a site and have it generated for them automatically.
My thinking about a strategy for this is:
Here are a couple of useful posts about systemd path units. https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files https://www.putorius.net/systemd-path-units.html