August 2017
Intermediate to advanced
278 pages
8h 53m
English
[uwsgi] socket = 127.0.0.1:8000 uid = www-data gid = www-data chdir = /var/www/flaskdemo module = demoapp callable = application master = True pidfile = /tmp/uwsgi-flaskdemo.pid max-requests = 5000 daemonize = /var/log/uwsgi/flaskdemo.log
For this demo, we have a single Flask file located in /var/www/flaskdemo/demoapp.py.
You can quickly launch your uWSGI service by running the following command:
uwsgi --ini uwsgi.ini
server { listen 80; server_name flaskdemo.nginxcookbook.com; ...Read now
Unlock full access