development-2.12.cfg 1.99 KB
Newer Older
1 2 3
# This Configuration file is used to create a standard instance for developers. 
# You should build a software home before use this recipe.

4
[buildout]
5
extends = ../profiles/deployment-2.12.cfg
6 7 8

parts +=
  development-site
9 10 11 12 13 14 15 16 17
  runUnitTest

[configuration]
development_site_products =
  ${software_definition:products-erp5}
  ${software_definition:products-erp5-development}
  ${software_definition:products-deps}

development_site_instancehome = ${buildout:var-directory}/development-site
18 19 20 21 22

[software_definition]
software_home = ${buildout:directory}

[runUnitTest]
23
<= test-runner-template
24 25
eggs = ${development-site:eggs}
extra-paths = ${development-site:extra-paths}
26
products = ${configuration:development_site_products}
27

28
instance-home = ${configuration:development_site_instancehome}
29 30 31
initialization =
  import os
  os.environ['PATH'] = ':'.join(['${buildout:data-bin-directory}','${buildout:bin-directory}'] + os.environ.get('PATH','').split(':'))
32
mysql_create_database = false
33
mysql_database_name = test212
34
mysql_user = test
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

[development-site]
<= zope-instance-template
# this is provided by the enhanced [eggs] in deployment-2.12.cfg
mkzopeinstance = ${buildout:directory}/bin/mkzopeinstance
# developer by default want to have updatable Data.fs
force-zodb-update = true
eggs =
  Products.ExternalEditor
  ${eggs:eggs}
extra-paths = ${eggs:extra-paths}

# MySQL
mysql_database_name = development_site
mysql_user = development_user
mysql_password = development_password
51
mysql_host = 127.0.0.1
52 53 54
mysql_port = ${configuration:mysql_port}

# create database
55
mysql_create_database = false
56 57 58 59 60 61
# below could be set in configuration
mysql_superuser = root
mysql_superpassword =

# zope.conf template part BEGIN
debug-mode = on
62
instancehome = ${configuration:development_site_instancehome}
63 64 65 66 67
http-address = 18080
# until we will have more control over products we need to redefine to insert
# local products to be able to override
products =
  ${:instancehome}/Products/
68
  ${configuration:development_site_products}
69
# zope.conf template part ENDS