aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
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)