28 lines
423 B
Text
Executable file
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
|
|
}
|