blob: 2b0047cb30a46705e158a7d593eb777845a93ef2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
case "$*" in
dev)
export SECRET_KEY="+qYGOYFD(Pc;--S]X%Xnu&j4c+~5As6)yRTY;CHl4bRW;"
export DEBUG_MODE=True
yes no | python manage.py migrate
python manage.py runserver 0.0.0.0:8000
;;
server)
# uwsgi start!
uwsgi --ini /app/uwsgi.conf
;;
shell)
/bin/bash
;;
*)
python manage.py "$@"
esac
|