Skip to content

Commit

Permalink
watch and serve script
Browse files Browse the repository at this point in the history
  • Loading branch information
KeenS committed Jan 25, 2016
1 parent 76978be commit 4d29044
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/watch_and_serve.sh
@@ -0,0 +1,9 @@
#!/bin/sh
RUBY=ruby
ROOT=$(cd "$(dirname "$0")"; pwd)

trap "trap - SIGINT && kill -INT -- -$$" SIGINT SIGTERM EXIT

"$RUBY" -run -e httpd -- . --port 8080 &
"$ROOT/watch.sh" "$1"

0 comments on commit 4d29044

Please sign in to comment.