Use the right python plugin for uwsgi
If uwsgi python plugin is installed separately then use the correct python version plugin Change-Id: I5050e2d9fe91fd710b47e63524d2fcb90584d131
This commit is contained in:
parent
4a740b4a41
commit
35fc976e5f
|
@ -95,8 +95,11 @@ def wsgi_file():
|
||||||
|
|
||||||
def build_uwsgi_server(uwsgi):
|
def build_uwsgi_server(uwsgi):
|
||||||
|
|
||||||
|
major = str(sys.version_info.major)
|
||||||
|
minor = str(sys.version_info.minor)
|
||||||
|
plugin = ''.join(('python', major, minor))
|
||||||
args = [
|
args = [
|
||||||
"--if-not-plugin", "python", "--plugin", "python", "--endif",
|
"--if-not-plugin", "python", "--plugin", plugin, "--endif",
|
||||||
"--http-socket", "%s:%d" % (CONF.api.host, CONF.api.port),
|
"--http-socket", "%s:%d" % (CONF.api.host, CONF.api.port),
|
||||||
"--master",
|
"--master",
|
||||||
"--enable-threads",
|
"--enable-threads",
|
||||||
|
|
Loading…
Reference in New Issue