-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentrypoint
49 lines (47 loc) · 1.01 KB
/
entrypoint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/dumb-init /bin/sh
set -e
case "$1" in
help|--help|-h)
echo "No help for you"
exit 1
;;
sh)
/bin/sh
;;
test)
pip install safety
safety check -r requirements.txt --full-report
pip install pylint pylint_django
pylint dtw api
python /app/manage.py test
;;
test_ci)
pip install safety
safety check -r requirements.txt --full-report
pip install pylint pylint_django
pylint dtw api
python /app/manage.py test --exclude-tag=integration
;;
devmode)
python /app/manage.py runserver 0.0.0.0:8080
;;
shell_plus)
python /app/manage.py shell_plus
;;
migrate)
python /app/manage.py migrate
;;
reset_db)
python /app/manage.py reset_db --noinput
;;
collectstatic)
python /app/manage.py collectstatic --noinput
;;
loaddata)
python /app/manage.py loaddata api/fixtures/*
;;
*)
python /app/manage.py collectstatic --noinput
gunicorn --bind :8080 --timeout 120 dtw.wsgi:application
;;
esac