JoelDueck.com Source

Artifact [101b514d4c]
Login

Artifact 101b514d4c73d4bfd1c2b297d85592177e9a60f3720b215f0f5e72d84fdab32f:


#!/bin/zsh
#
# Start a local project web server

function finish {
    printf "\nKilling fswatch [PID %s]" $watcher_pid
    kill -KILL $watcher_pid 2> /dev/null
}
trap finish EXIT

# Watch local folder for changes, run "make web -j 8" every time  
fswatch -I .rkt -o ./ | xargs -n1 -I{} make web -j 8 &
watcher_pid=$!
raco static-web -l -d publish/