18 lines
317 B
Bash
18 lines
317 B
Bash
#!/usr/bin/env bash
|
|
|
|
function sync() {
|
|
ENV=development make render $@
|
|
date +%s.%N > public/hot-reload
|
|
rsync -avhP public/ dev.ekzyis.com:/var/www/dev.ekzyis --delete
|
|
}
|
|
|
|
function cleanup() {
|
|
rm -f public/hot-reload
|
|
}
|
|
trap cleanup EXIT
|
|
|
|
sync -B
|
|
while inotifywait -r -e modify html/ blog/ *.go; do
|
|
sync
|
|
done
|