Skip to content

Instantly share code, notes, and snippets.

@david-batranu
Last active September 19, 2017 09:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save david-batranu/c6eb0f243f3ee0528cc637eb980ec796 to your computer and use it in GitHub Desktop.
Save david-batranu/c6eb0f243f3ee0528cc637eb980ec796 to your computer and use it in GitHub Desktop.
plone-wsgi
# 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