Setup flask application with nginx for Ubuntu 18.06

sudo apt-get update sudo apt-get install python-pip   sudo pip install virtualenv   virtualenv venv source venv/bin/activate   application_uwsgi.ini [uwsgi] #application’s base folder base = /data/tools/application #python module to import app = application_entry module = %(app) home = %(base)/venv pythonpath =%(base) #socket file’s location socket = /data/tools/application/%n.sock #permissions for the socket file chmod-socket = 666 […]