Skip to content

Instantly share code, notes, and snippets.

@scythargon
Created February 27, 2015 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scythargon/370c6ed340a08d02bc12 to your computer and use it in GitHub Desktop.
Save scythargon/370c6ed340a08d02bc12 to your computer and use it in GitHub Desktop.
#!/bin/bash
$(cd pages && python -m SimpleHTTPServer ) &
while true; do
change=$(inotifywait -r -e close_write,moved_to,create templates/*)
change=${change#./templates/* }
(./render_test_airline.py && echo -e "\033[1;32mtemplate recompiled\033[0m") || echo -e "\033[1;31merror!\033[0m"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment