histoiredunpied/auto-publish.sh

7 lines
150 B
Bash
Executable File

#!/bin/sh
while inotifywait -e create,moved_to,delete,modify -r ./content/ ./static/; do
sleep 20
npm run build && npm run ftp-deploy
date
done