Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

WARNING: This is a development server. Do not use it in a production deployment.

from flask import Flask

app = Flask(__name__)

@app.route("/")
def index():
    return "<h1>Hello World!</h1>"

if __name__ == "__main__":
    from waitress import serve
    serve(app, host="0.0.0.0", port=8080)
Source by exerror.com #
 
PREVIOUS NEXT
Tagged: #This #development #Do #production
ADD COMMENT
Topic
Name
7+5 =