support hostname parameter in config file
diff --git a/planetstack/scripts/opencloud b/planetstack/scripts/opencloud
index 5093c4d..d8e367a 100755
--- a/planetstack/scripts/opencloud
+++ b/planetstack/scripts/opencloud
@@ -54,8 +54,9 @@
pkill -f "python.*runserver"
}
function runserver {
- echo "Starting OpenCloud Service on $HOSTNAME:8000"
- python manage.py runserver $HOSTNAME:8000&
+ PUBLIC_HOSTNAME=`/opt/planetstack/planetstack-config.py get server_hostname $HOSTNAME`
+ echo "Starting OpenCloud Service on $PUBLIC_HOSTNAME:8000"
+ python manage.py runserver $PUBLIC_HOSTNAME:8000&
}
function dumpdata {