Skip to content

Instantly share code, notes, and snippets.

@avoinea
Forked from david-batranu/buildout.cfg
Created September 19, 2017 09:26
Show Gist options
  • Save avoinea/ea3503fb5fa819dd43807f14c238715b to your computer and use it in GitHub Desktop.
Save avoinea/ea3503fb5fa819dd43807f14c238715b 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