forked from plone/buildout.coredev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wsgioptions.cfg
92 lines (82 loc) · 1.98 KB
/
wsgioptions.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[buildout]
extends =
core.cfg
parts +=
wsgi.py
uwsgi
uwsgiini
uwsgi-instance
gunicornapp
gunicorn
gunicorn-instance
[gunicornapp]
recipe = collective.recipe.template
input = inline:
from Zope2.Startup.run import make_wsgi_app
wsgiapp = make_wsgi_app({}, '${buildout:parts-directory}/instance/etc/zope.conf')
def application(*args, **kwargs):return wsgiapp(*args, **kwargs)
output = ${buildout:bin-directory}/gunicornapp.py
[wsgi.py]
recipe = zc.recipe.egg
eggs =
${instance:eggs}
scripts =
wsgi.py
interpreter =
wsgi.py
initialization =
from Zope2.Startup.run import make_wsgi_app;
wsgiapp = make_wsgi_app({}, '${buildout:parts-directory}/instance/etc/zope.conf')
def application(*args, **kwargs):return wsgiapp(*args, **kwargs)
[uwsgi]
recipe = zc.recipe.egg
environment = uwsgi-buildenv
eggs =
greenlet
uwsgi
${instance:eggs}
scripts =
uwsgi
[uwsgi-buildenv]
UWSGI_PROFILE="asyncio"
[uwsgiini]
recipe = collective.recipe.template
input = inline:
[uwsgi]
http-socket = 0.0.0.0:8080
socket = 127.0.0.1:8081
chdir = ${buildout:directory}/bin
module = wsgi:application
# s. https://github.com/zopefoundation/Zope/issues/283
master = true
#enable-threads = true
#processes = 1
#threads = 2
asyncio = 4
greenlet = true
output = ${buildout:directory}/etc/uwsgi.ini
[uwsgi-instance]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
${buildout:directory}/bin/uwsgi --ini ${buildout:directory}/etc/uwsgi.ini
output = ${buildout:bin-directory}/uwsgi-instance
mode = 755
[gunicorn]
recipe = zc.recipe.egg
eggs =
gunicorn
${instance:eggs}
scripts =
gunicorn
[gunicorn-instance]
recipe = collective.recipe.template
input = inline:
#!/bin/sh
${buildout:directory}/bin/gunicorn -b localhost:8080 --threads 4 gunicornapp:application
output = ${buildout:bin-directory}/gunicorn-instance
mode = 755
[versions]
greenlet = 0.4.15
gunicorn = 19.9.0
uWSGI = 2.0.18