start the main server projeckt
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
from flask import Flask, request
|
||||
import os
|
||||
|
||||
port = int(os.environ.get('PORT', 8084))
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def hub():
|
||||
return "Welcome to the Flask Hub!"
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=False, host='0.0.0.0', port=port)
|
||||
Reference in New Issue
Block a user