Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simply compiling and running web server into devevelopment.sh
- Loading branch information
Brandon Tilley
committed
Feb 2, 2013
1 parent
63f9684
commit 37087d5
Showing
3 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Arbitrary shell commands, some run in background | ||
./scripts/compile.sh & | ||
node ./scripts/web-server.js | ||
|
||
# The magic line | ||
# $$ holds the PID for this script | ||
# Negation means kill by process group id instead of PID | ||
trap "kill -TERM -$$" SIGINT | ||
wait |