diff options
-rw-r--r-- | __main__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/__main__.py b/__main__.py index 91eeda75..c1a40ad6 100644 --- a/__main__.py +++ b/__main__.py @@ -12,4 +12,5 @@ app.secret_key = os.environ.get("WEBPAGE_SECRET_KEY") def index(): return "Hello." -app.run(port=int(os.environ.get("WEBPAGE_PORT")), debug=False) +if __name__ == '__main__': + app.run(port=int(os.environ.get("WEBPAGE_PORT")), debug=False) |