nginx-gunicorn-flask:使用NGINX Gunicorn Flask的简单示例架构

时间:2021-04-27 18:40:25
【文件属性】:
文件名称:nginx-gunicorn-flask:使用NGINX Gunicorn Flask的简单示例架构
文件大小:100.05MB
文件格式:ZIP
更新时间:2021-04-27 18:40:25
python nginx flask gunicorn Python NGINX-GUNICORN-烧瓶 这是使用Nginx + Gunicorn服务于Flask应用程序的示例配置。 设置python环境 下面显示了如何设置环境并假定您具备bash / RHEL的知识。 以下内容已在RHEL 6.8 (Santiago)上进行了测试,并假定您正在重新安装操作系统(即,不假定您已经安装了所有这些依赖项)。 让我们创建一些bash变量以开始使用。 在这里,我们假设flask应用程序将安装在/opt/apps目录中,Python环境将命名为myenv并且我们正在手动设置PATH变量以包括该环境。 如果您已经有一个环境并使用source activate myenv激活了该环境,则无需手动设置PATH变量。 APPS_DIR=/opt/apps PYTHON_ENV=myenv PATH=/usr/local/envs/ $PYTHON_ENV /bin:/us
【文件预览】:
nginx-gunicorn-flask-master
----test_client.py(1KB)
----request_pool.py(485B)
----Vagrantfile(374B)
----install.sh(1KB)
----images()
--------.DS_Store(6KB)
--------kafka.png(459KB)
----devops()
--------Miniconda2-latest-Linux-x86_64.sh(27.77MB)
--------gunicorn_supervisor.ini(288B)
--------gunicorn.conf.py(266B)
--------supervisord.sh(3KB)
--------nginx.conf(1KB)
--------supervisord.conf(8KB)
----dockerfile()
--------Dockerfile(3KB)
--------bin()
----setup.py(131B)
----README.md(6KB)
----tests()
--------test_tasks.py(118B)
--------test_views.py(649B)
--------__init__.py(0B)
----.gitignore(1KB)
----app()
--------sample_data()
--------data.py(919B)
--------__init__.py(2KB)
--------tasks.py(78B)
--------views.py(1KB)

网友评论