Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes #140 and #141
  • Loading branch information
devGregA committed Jul 17, 2017
1 parent 3e9d08f commit 13bc355
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions run_dojo.bash
@@ -0,0 +1,21 @@
#!/bin/bash

function control_c()
# run if user hits control-c
{
kill -15 $cpid $bpid $ppid
exit $?
}

trap 'control_c' SIGINT

celery -A dojo worker -l info --concurrency 3 &
cpid=$!

celery beat -A dojo -l info &
bpid=$!

python manage.py runserver
ppid=$!

tail -f /dev/null

0 comments on commit 13bc355

Please sign in to comment.