summaryrefslogtreecommitdiffstats
path: root/dashboard/web/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/web/init.sh')
-rwxr-xr-xdashboard/web/init.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/dashboard/web/init.sh b/dashboard/web/init.sh
new file mode 100755
index 0000000..736acc1
--- /dev/null
+++ b/dashboard/web/init.sh
@@ -0,0 +1,12 @@
+#!/bin/bash -e
+##############################################################################
+# Copyright (c) 2018 Trevor Bramwell and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+python manage.py migrate && \
+python manage.py collectstatic --no-input && \
+gunicorn pharos_dashboard.wsgi -b 0.0.0.0:8000