diff options
author | 2018-02-03 13:13:24 +0000 | |
---|---|---|
committer | 2018-02-03 13:13:24 +0000 | |
commit | 65ae5ea620ddbb3528e0af888c4ae7ad941ca3d0 (patch) | |
tree | c683bedfdae18c958713fe210f5fffab9f2263b8 /app.py | |
parent | add isort (diff) |
Change __main__.py to app.py
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +#!/usr/bin/env python3 + +import os + +from flask import Flask + +app = Flask(__name__) + +app.secret_key = os.environ.get("WEBPAGE_SECRET_KEY") + + [email protected]("/") +def index(): + return "Hello." + + +if __name__ == '__main__': + app.run(port=int(os.environ.get("WEBPAGE_PORT")), debug=False) |