aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorGravatar JoeBanks13 <[email protected]>2018-02-03 13:13:24 +0000
committerGravatar JoeBanks13 <[email protected]>2018-02-03 13:13:24 +0000
commit65ae5ea620ddbb3528e0af888c4ae7ad941ca3d0 (patch)
treec683bedfdae18c958713fe210f5fffab9f2263b8 /app.py
parentadd isort (diff)
Change __main__.py to app.py
Diffstat (limited to 'app.py')
-rw-r--r--app.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/app.py b/app.py
new file mode 100644
index 00000000..9533b89f
--- /dev/null
+++ b/app.py
@@ -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")
+
+
+def index():
+ return "Hello."
+
+
+if __name__ == '__main__':
+ app.run(port=int(os.environ.get("WEBPAGE_PORT")), debug=False)