#Coding part of test.py
from flask import Flask
app = Flask(__name__)
@app.route('/')
@app.route('/home')
def home():
return "home"
if __name__ == '__main__':
app.run('0.0.0.0', 8888)
#Service started
[root@iz8vbhn6ph9ryrkiiql96ez amjed]# python test.py
* Serving Flask app "test" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://0.0.0.0:8888/ (Press CTRL+C to quit)