- NGINX Cookbook
- Tim Butler
- 116字
- 2021-07-03 00:04:30
How it works...
The Flask applications are so simple that they don't come with all of the boilerplate WSGI configurations such as Django and other frameworks. The good news is that the flexibility of uWSGI means it's very easy to configure.
In order for uWSGI to know what file to call, which we do via the module configuration entry, set it to demoapp. Those familiar with Python will know that this translates into loading demoapp.py.
Secondly, the callable configuration specifies the default WSGI callable name, which in our demoapp.py is set to application.
Lastly, we have a very simple NGINX server block directive. This simply pushes all calls to our Flask application using the uWSGI socket.
推薦閱讀
- Vue.js設(shè)計(jì)與實(shí)現(xiàn)
- 數(shù)據(jù)庫(kù)程序員面試筆試真題與解析
- Modular Programming with Python
- Apache Hive Essentials
- Python計(jì)算機(jī)視覺編程
- C/C++常用算法手冊(cè)(第3版)
- Getting Started with Eclipse Juno
- C#程序設(shè)計(jì)(項(xiàng)目教學(xué)版)
- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- 自學(xué)Python:編程基礎(chǔ)、科學(xué)計(jì)算及數(shù)據(jù)分析(第2版)
- Android系統(tǒng)下Java編程詳解
- Web前端開發(fā)技術(shù):HTML、CSS、JavaScript
- 微信小程序開發(fā)邊做邊學(xué)(微課視頻版)
- JavaScript程序設(shè)計(jì)實(shí)例教程(第2版)
- 3ds Max瘋狂設(shè)計(jì)學(xué)院