diff options
author | sanine <sanine.not@pm.me> | 2023-01-12 17:24:25 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2023-01-12 17:24:25 -0600 |
commit | 655cd79991ec9204afb9f5acf52495c13af14d25 (patch) | |
tree | c2f441e09ce65337bb622183107a77c40c0dad0b /serve-http.sh | |
parent | 35de9c18b9c9ce7d466e5aecec0b4becde2795bb (diff) |
begin go refactorgo-dynamic
Diffstat (limited to 'serve-http.sh')
-rwxr-xr-x | serve-http.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/serve-http.sh b/serve-http.sh deleted file mode 100755 index 874b586..0000000 --- a/serve-http.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -# this script is for previewing site changes ONLY!! it should not be used to -# actually serve a site. use apache or nginx or something for that. - -# launch webserver -python3 -m http.server --directory public/ & -server_pid="$!" -echo "server launched with PID $server_pid" - -# kill server on exit -trap "kill $server_pid && echo && echo \"bye!\"" EXIT - -# rebuild on file changes (inotifywait is from inotify-tools) -while inotifywait -qr --event modify .; do - echo "rebuilding site..." - argent - echo "done." -done |