Mais conteúdo relacionado Semelhante a PyGrunn - Buildout presentation (20) PyGrunn - Buildout presentation1. – write once, deploy often – Creating repeatable environments with Buildout 9. There is a need for creating repeatable DTAP deployments 12. An application may actually contain multiple programs, processes, and configuration settings 16. Simple buildout config [buildout] develop = src/hello parts = hello-buildout [hello-buildout] recipe = zc.recipe.egg interpreter = py eggs = hello 17. Multiple configuration files [buildout] extends = buildout-base.cfg supervisor.cfg pound.cfg prd-settings.cfg prd-version.cfg parts += instance0 ... 18. Variable substitutions [cluster] int-ip = 192.168.10.1 supervisor-port = 38080 [supervisor] recipe = collective.recipe.supervisor port = ${cluster:int-ip}:${cluster:supervisor-port} serverurl = http://${cluster:int-ip}:${cluster:supervisor-port} programs = 20 instance ${instance:location}/bin/runzope ${instance:location} true 80 pound ${buildout:directory}/bin/poundrun 20. Example buildout config [buildout] parts = pyramid eggs = ZopeSkel extensions = mr.developer sources = sources auto-checkout = opsbqueue gw20e.forms [sources] opsbqueue = svn https://svn.gw20e.com/oosterpoort/eggs/opsbqueue gw20e.forms = svn https://svn.plone.org/svn/collective/gw20e.forms/trunk [pyramid] recipe = zc.recipe.egg interpreter = py eggs = pyramid opsbqueue gw20e.forms