flask-restful-wsgi:带有Apache配置的示例flask_restful应用

时间:2021-04-29 18:46:49
【文件属性】:
文件名称:flask-restful-wsgi:带有Apache配置的示例flask_restful应用
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-29 18:46:49
Python 烧瓶-宁静-wsgi 具有Apache mod_wsgi配置的示例flask_restful应用 目的 此存储库说明了使用mod_wsgi在Apache 2.4上部署flask_restful(Python Flask)应用程序的简化方法。 通常,这是对的更具体的阐述。 假设您有一个前端可以部署为静态站点(例如React应用程序),而flask_restful应用程序充当该前端的API层,那么此存储库将为您提供基本的Apache配置:静态站点在'/'处,而api在'/ api'中。 先决条件 我从Red Hat 7实例(在AWS EC2上)开始,并进行了以下设置: sudo easy install pip sudo pip install flask flask_restful sudo yum install httpd sudo yum install mod_wsgi
【文件预览】:
flask-restful-wsgi-master
----spam.conf(877B)
----LICENSE(1KB)
----README.md(2KB)
----spam-fe()
--------.htaccess(254B)
--------index.html(18B)
----spam-api()
--------spam-api-venv.wsgi(465B)
--------spam-api.wsgi(423B)
--------resources()
--------controllers()

网友评论