Last active
December 19, 2015 15:29
-
-
Save arusahni/5976676 to your computer and use it in GitHub Desktop.
A lightweight wrapper for launching wdb alongside a dev web server, and killing it when the web server is killed.
This file contains hidden or 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
#!/bin/bash | |
function cleanup { | |
echo "" | |
echo "Kill signal detected. Killing wdb server." | |
kill 0 | |
} | |
trap cleanup EXIT | |
echo "Starting wdb server..." | |
wdb.server.py & | |
echo "Done! Starting app server..." | |
# put your app server init here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cheers.