We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f024e4d commit b89e719Copy full SHA for b89e719
bin/srv.py
@@ -275,8 +275,9 @@ def answer(topic=None):
275
return Response(result, mimetype='text/plain')
276
277
if 'CHEATSH_PORT' in os.environ:
278
- SRV = WSGIServer((CONFIG['server.bind'], int(os.environ.get('CHEATSH_PORT'))), app) # log=None)
279
- SRV.serve_forever()
+ PORT = int(os.environ.get('CHEATSH_PORT'))
280
else:
281
- SRV = WSGIServer((CONFIG['server.bind'], CONFIG['server.port']), app) # log=None)
282
+ PORT = CONFIG['server.port']
+SRV = WSGIServer((CONFIG['server.bind'], PORT), app) # log=None)
+print("Starting server on {}:{}".format(SRV.address[0], SRV.address[1]))
283
+SRV.serve_forever()
0 commit comments