support hostname parameter in config file
diff --git a/planetstack/planetstack-config.py b/planetstack/planetstack-config.py
index 5bcb8fc..7aa375b 100755
--- a/planetstack/planetstack-config.py
+++ b/planetstack/planetstack-config.py
@@ -1,3 +1,4 @@
+#!/usr/bin/python
 import sys
 from planetstack.config import Config
 
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 {