use 0.0.0.0 instead of the host's public hostname
diff --git a/xos/scripts/docker_start_xos b/xos/scripts/docker_start_xos
index eee9b8f..324f6b8 100755
--- a/xos/scripts/docker_start_xos
+++ b/xos/scripts/docker_start_xos
@@ -3,5 +3,5 @@
bash /opt/xos/scripts/docker_setup_xos
cd /opt/xos
-PUBLIC_HOSTNAME=`./xos-config.py get server_hostname $HOSTNAME`
+PUBLIC_HOSTNAME="0.0.0.0"
python manage.py runserver $PUBLIC_HOSTNAME:8000 --insecure
diff --git a/xos/scripts/opencloud b/xos/scripts/opencloud
index 6b3e737..075870b 100755
--- a/xos/scripts/opencloud
+++ b/xos/scripts/opencloud
@@ -99,7 +99,7 @@
}
function runserver {
ensure_postgres_running
- PUBLIC_HOSTNAME=`$XOS_DIR/xos-config.py get server_hostname $HOSTNAME`
+ PUBLIC_HOSTNAME="0.0.0.0"
echo "Starting XOS Service on $PUBLIC_HOSTNAME:8000"
python manage.py runserver $PUBLIC_HOSTNAME:8000 --insecure&
}
diff --git a/xos/xos-config.py b/xos/tools/xos-config.py
similarity index 100%
rename from xos/xos-config.py
rename to xos/tools/xos-config.py