Switch to Python Flask app for testing
This commit is contained in:
12
app.py
Normal file
12
app.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from flask import Flask
|
||||
import os
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello():
|
||||
return "Hello from Python Flask app deployed via your platform!"
|
||||
|
||||
if __name__ == '__main__':
|
||||
port = int(os.environ.get('PORT', 8080))
|
||||
app.run(host='0.0.0.0', port=port)
|
||||
Reference in New Issue
Block a user