#Setup Environment #Install Git #Install python tools & nginx(Optional)
$ sudo yum update $ sudo yum install python3 (If not installed already) $ sudo yum install python-pip3
$ sudo pip3 install virtualenv
$ cd Hello_Flask_App
$ virtualenv venv
$ source ./venv/bin/activate
Now the prompt should look like: (venv)user@host:~/Hello_Flask_App$
(venv)user@host:~/Hello_Flask_App$ pip3 install gunicorn flask
(venv)user@host:~/Hello_Flask_App$ python app.py
Go to your browser and enter the url to your server, appending the port number you specified in app.py. You should see Hello World! displayed
##############################################################################################################################################
Create the WSGI entrypoint ~/Hello_Flask_App/wsgi.py.
(venv)user@host:~/Hello_Flask_App$ gunicorn --bind 0.0.0.0:8080 wsgi:app
#Note: If you didn't name your app as application, for example as app, use wsgi:app instead of wsgi, since application is the name to be picked up by default.
Go to your browser again and read the Hello World! response
###############################################################
$python test_app.py