Uwsgi

From ElectroDragon Wiki
  • Setup of Nginx please see Nginx page
  • Build simple Flask app

Direct run quick start

  • uwsgi --socket 0.0.0.0:5000 --protocol=http -w run:app
  • uwsgi --socket 0.0.0.0:5000 --protocol=http -w data:app

Config ini

  • uwsgi --ini conf.ini
[uwsgi]
module = test1:app
master = true
processes = 3

socket = sock.sock

# logto =  log.log # comment this if start failed

chmod-socket = 660 # maybe use 666

vacuum = true

Up start