LoginSignup
1
0

More than 5 years have passed since last update.

flask wsgi を paste-deploy 経由で uwsgi にデプロイする例

Last updated at Posted at 2018-03-29
hoge.py
from flask import Flask

app = Flask(__name__)

@app.route("/", methods=["GET"])
def hoge():
        return "OK"

def factory(gconf, **conf):
        return app.wsgi_app
wsgi.ini
[uwsgi]
http = 9000
threads = 4

[app:main]
use = call:hoge:factory
PYTHONPATH=. uwsgi --ini-paste wsgi.ini
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0