Uwsgi

From ElectroDragon Wiki
Revision as of 23:35, 28 January 2020 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • 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