JoelDueck.com Source

start-server at 5dfe90589378e23154a31a56a810f794deb6757b7e05af8a91e9820faf361f9d
Login

File start-server artifact 101b514d4c part of check-in 5dfe90589378e23154a31a56a810f794deb6757b7e05af8a91e9820faf361f9d


#!/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/