File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,19 +23,28 @@ chgrp deis /var/run/docker.sock
2323groupadd -g " $( stat -c " %g" /var/run/docker.sock) " docker || true
2424usermod -a -G docker deis || true
2525
26+ echo " "
2627echo " Django checks:"
2728python /app/manage.py check --deploy api
2829
30+ echo " "
2931echo " Health Checks:"
3032python /app/manage.py healthchecks
3133
34+ echo " "
3235echo " Database Migrations:"
3336sudo -E -u deis python /app/manage.py migrate --noinput
3437
3538# spawn a gunicorn server in the background
39+ echo " "
40+ echo " Starting up Gunicorn"
3641sudo -E -u deis gunicorn -c /app/deis/gunicorn/config.py api.wsgi &
3742
38- python /app/manage.py load_db_state_to_k8s
43+ echo " "
44+ echo " Loading database information to Kubernetes in the background"
45+ echo " Log of the run can be found in /app/data/logs/load_db_state_to_k8s.log"
46+ # python -u avoids output buffering
47+ nohup python -u /app/manage.py load_db_state_to_k8s > /app/data/logs/load_db_state_to_k8s.log &
3948
4049# smart shutdown on SIGTERM (SIGINT is handled by gunicorn)
4150function on_exit() {
@@ -46,6 +55,7 @@ function on_exit() {
4655}
4756trap on_exit TERM
4857
58+ echo " "
4959echo deis-controller running...
5060
5161wait
You can’t perform that action at this time.
0 commit comments