diff options
author | 2018-02-03 12:31:10 +0000 | |
---|---|---|
committer | 2018-02-03 12:31:10 +0000 | |
commit | 7aafb0ba76e3fdc533e61d910a7b77484fbc9dac (patch) | |
tree | 6185ef1f6bb616a72a9e1a5f9b255891f22fe454 | |
parent | Create requirements.txt & add flask (diff) |
Create basic page
-rw-r--r-- | __main__.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/__main__.py b/__main__.py new file mode 100644 index 00000000..91eeda75 --- /dev/null +++ b/__main__.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python3 + +from flask import flask +import os + +app = Flask(__name__) + +app.secret_key = os.environ.get("WEBPAGE_SECRET_KEY") + + [email protected]("/") +def index(): + return "Hello." + +app.run(port=int(os.environ.get("WEBPAGE_PORT")), debug=False) |