deployd/interpreter/examples/static.deployer
Arija A. fca825f872
Improve deployer exports
Signed-off-by: Arija A. <ari@ari.lt>
2025-07-25 00:32:07 +03:00

28 lines
423 B
Text
Executable file

#!/usr/bin/env deployer
# --------------------------------------
# Name: static site deployer
# User: ari
# Group: ari
# Target: /tmp/static-example
# Copy: yes
# --------------------------------------
prepare() {
prevsrc
if [ -d .git ]; then
git pull
else
git clone https://git.ari.lt/ari/example-static-site .
fi
}
cleanup() {
rm -rf -- .git
}
sysadmin() {
nginx -s reload
}