Skip to content

Instantly share code, notes, and snippets.

@aodag
Last active December 27, 2015 11:39
Show Gist options
  • Save aodag/7320641 to your computer and use it in GitHub Desktop.
Save aodag/7320641 to your computer and use it in GitHub Desktop.
[app]
recipe = zc.recipe.egg
eggs = ${eggs:main}
interpreter = py
[paster_ini]
recipe = z3c.recipe.template
input = production.ini.in
output = ${buildout:parts-directory}/etc/production.ini
base_ini = ${buildout:directory}/base.ini
[circus_ini]
recipe = z3c.recipe.template
input = circus.ini.in
output = ${buildout:parts-directory}/etc/circus.ini
paster_ini = ${paster_ini:output}
[dev-app]
recipe = zc.recipe.egg
eggs = ${eggs:main}
gearbox
waitress
scripts =
gearbox=rundev
initialization = sys.argv[1:] = "serve -c development.ini --reload".split()
[prod-app]
recipe = zc.recipe.egg
eggs = ${eggs:main}
waitress
chaussette
scripts =
chaussette
[alembic]
recipe = zc.recipe.egg
eggs = ${eggs:main}
alembic
[docs]
recipe = z3c.recipe.sphinxdoc
eggs = ${eggs:docs}
default.css =
layout.html =
[test]
recipe = zc.recipe.testrunner
eggs = ${eggs:test}
[test2]
recipe = zc.recipe.egg
eggs = ${eggs:test}
interpreter = testpy
[circusd]
recipe = zc.recipe.egg
eggs = circus
scripts = circusd
initialization = sys.argv[1:] = "--daemon ${circus_ini:output}".split()
[circusctl]
recipe = zc.recipe.egg
eggs = circus
scripts = circusctl
[circus]
endpoint = tcp://127.0.0.1:5555
pubsub_endpoint = tcp://127.0.0.1:5556
stats_endpoint = tcp://127.0.0.1:5557
[watcher:web]
cmd = bin/chaussette --fd $(circus.sockets.web) paste:${circus_ini:paster_ini}
use_sockets = True
numprocesses = 5
[socket:web]
host = 0.0.0.0
port = 8000
[app:main]
use = config:${paster_ini:base_ini}
sqlalchemy.url = sqlite:///%(here)s/admin.sqlite
[server:main]
use = egg:waitress
port = 8080
host = 0.0.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment