Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions verifier/runserver.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@


from os import environ
import os
from verifier import app

if __name__ == '__main__':
HOST = environ.get('SERVER_HOST', 'localhost')
try:
PORT = int(environ.get('SERVER_PORT', '5555'))
except ValueError:
PORT = 5555
HOST = os.getenv('SERVER_HOST', 'localhost')
PORT = os.getenv('SERVER_PORT', '5555')
app.run(HOST, PORT)