aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar JoeBanks13 <[email protected]>2018-02-03 12:31:10 +0000
committerGravatar JoeBanks13 <[email protected]>2018-02-03 12:31:10 +0000
commit7aafb0ba76e3fdc533e61d910a7b77484fbc9dac (patch)
tree6185ef1f6bb616a72a9e1a5f9b255891f22fe454
parentCreate requirements.txt & add flask (diff)
Create basic page
-rw-r--r--__main__.py15
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")
+
+
+def index():
+ return "Hello."
+
+app.run(port=int(os.environ.get("WEBPAGE_PORT")), debug=False)