Commit ff7fafd1 authored by Nikolai Maltsev's avatar Nikolai Maltsev
Browse files

Minor improvements

parent 62ce5b1b
......@@ -3,4 +3,4 @@ docker run -it --rm \
-h testlabhost \
-p 8009:8000 \
-e PORT=8000 \
$TAG:latest
\ No newline at end of file
$TAG:latest
......@@ -80,7 +80,7 @@ app.add_routes([
web.get("/page3", test3_handler),
])
ENV_PORT:str = os.environ.get('PORT')
port_number = int(ENV_PORT) if ENV_PORT is not None and ENV_PORT.isdigit() else 8000
port_number = int(os.environ.get('PORT')) if os.environ.get('PORT').isdigit() else 8000
web.run_app(app, port=port_number)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment