summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/browse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/browse.py b/src/browse.py
index 9e59bd8..081eb8c 100755
--- a/src/browse.py
+++ b/src/browse.py
@@ -182,7 +182,7 @@ class RequestHandler(httpserver.BaseHTTPRequestHandler):
def log_message(self, format, *args):
pass # Swallow console spam.
-port = 8000
+port = int(os.getenv("PORT", '8000'))
httpd = httpserver.HTTPServer(('',port), RequestHandler)
try:
hostname = socket.gethostname()