Skip to content

Commit 13bc355

Browse files
committed
Fixes #140 and #141
1 parent 3e9d08f commit 13bc355

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

run_dojo.bash

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
function control_c()
4+
# run if user hits control-c
5+
{
6+
kill -15 $cpid $bpid $ppid
7+
exit $?
8+
}
9+
10+
trap 'control_c' SIGINT
11+
12+
celery -A dojo worker -l info --concurrency 3 &
13+
cpid=$!
14+
15+
celery beat -A dojo -l info &
16+
bpid=$!
17+
18+
python manage.py runserver
19+
ppid=$!
20+
21+
tail -f /dev/null

0 commit comments

Comments
 (0)