Last active
September 19, 2017 09:26
-
-
Save david-batranu/c6eb0f243f3ee0528cc637eb980ec796 to your computer and use it in GitHub Desktop.
plone-wsgi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install uwsgi>=2.0.15 (requires build-essential and python-dev) | |
# adding it to eggs should also work, assuming you have gcc | |
[buildout] | |
parts += | |
instance | |
uwsgi-app | |
uwsgi-run | |
[uwsgi-run] | |
recipe = collective.recipe.template | |
output= ${buildout:bin-directory}/uwsgi-run | |
mode = 755 | |
input = inline: | |
uwsgi \ | |
--http :8080 \ | |
--stats :9191 \ | |
--wsgi-file=${buildout:bin-directory}/${uwsgi-app:interpreter} | |
[uwsgi-app] | |
recipe = zc.recipe.egg:script | |
interpreter = uwsgi-app | |
eggs = ${instance:eggs} | |
initialization = from Zope2.Startup.run import make_wsgi_app; application = make_wsgi_app({}, '${instance:location}/etc/zope.conf') | |
[instance] | |
recipe = plone.recipe.zope2instance | |
user = admin:admin | |
http-address = | |
eggs = | |
my.distribution | |
zcml = | |
my.distribution |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment