Skip to content

Instantly share code, notes, and snippets.

@arusahni
Last active December 19, 2015 15:29
Show Gist options
  • Save arusahni/5976676 to your computer and use it in GitHub Desktop.
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.
#!/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
@trojjer
Copy link

trojjer commented Nov 18, 2013

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment