aboutsummaryrefslogtreecommitdiffstats
path: root/docker/app/migrate_and_serve.sh
diff options
context:
space:
mode:
authorGravatar Hasan-Ahmad <[email protected]>2018-10-16 22:41:53 +0100
committerGravatar Hasan-Ahmad <[email protected]>2018-10-16 22:41:53 +0100
commitb5a29905ce019a037ca282b0dbe6687c0b570906 (patch)
tree66f92f9d6328e2ad4484bf412cebe3057af7056a /docker/app/migrate_and_serve.sh
parentexterminated trailing comma, fixed imports 2 per line (diff)
parentAdd `docker` tag to use proper runners. (diff)
Merge branch 'django' of https://gitlab.com/python-discord/projects/site into snake_facts
Gitlab-ci thing
Diffstat (limited to 'docker/app/migrate_and_serve.sh')
-rwxr-xr-xdocker/app/migrate_and_serve.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/docker/app/migrate_and_serve.sh b/docker/app/migrate_and_serve.sh
new file mode 100755
index 00000000..032504e2
--- /dev/null
+++ b/docker/app/migrate_and_serve.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+### NOTE
+# This file is intended to be used by local setups.
+# You do not want to run the Django development server
+# in production. The default Dockerfile command will
+# run using uWSGI, this script is provided purely as
+# a convenience to run migrations and start a development server.
+
+echo [i] Applying migrations.
+python manage.py migrate --verbosity 0
+echo [i] Starting server.
+python manage.py runserver 0.0.0.0:8000