forked from pjstevns/tryton.buildout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.cfg
More file actions
137 lines (124 loc) · 3.53 KB
/
Copy pathbase.cfg
File metadata and controls
137 lines (124 loc) · 3.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[buildout]
index = http://last.pypi.python.org/simple/
#extensions = buildout.dumppickedversions
parts =
lxml
psycopg2
supervisor
tryton
tryton-config
postgresql
postgresqlinit
py
versions = versions
download-cache = /var/tmp
develop =
[versions]
lxml = 2.2.6
python-dateutil = 1.5
BeautifulSoup = 3.0.8.1
buildout.dumppickedversions = 0.4
zc.recipe.egg = 1.2.2
[lxml]
recipe = z3c.recipe.staticlxml
egg = lxml
[tryton]
recipe = zc.recipe.egg
eggs =
PasteScript
BeautifulSoup
PyWebDAV
vobject
pytz
vatnumber
trytond
z3c.rml
${tryton:modules}
modules =
trytond_account
trytond_currency
trytond_party
trytond_country
trytond_company
trytond_dashboard
trytond_account_invoice
trytond_account_invoice_history
trytond_account_invoice_line_standalone
trytond_account_product
trytond_account_statement
trytond_analytic_account
trytond_analytic_invoice
trytond_analytic_purchase
trytond_analytic_sale
trytond_calendar
trytond_calendar_classification
trytond_calendar_scheduling
trytond_calendar_todo
trytond_company
trytond_company_work_time
trytond_contract
trytond_country
trytond_dashboard
trytond_party
trytond_product
trytond_product_price_list
trytond_project
trytond_project_revenue
trytond_purchase
trytond_sale
trytond_sale_price_list
trytond_stock
trytond_timesheet
trytond_timesheet_invoice
[tryton-config]
recipe = collective.recipe.template == 1.8
interface = 0.0.0.0
admin_passwd = admin
db_host = localhost
db_port = 24005
db_user = tryton
db_password = tryton
input = ${buildout:directory}/trytond.conf.in
output = ${buildout:directory}/etc/trytond.conf
[psycopg2]
recipe = collective.recipe.distutils
url = http://www.initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.2.tar.gz
[postgresql]
recipe = zc.recipe.cmmi
url = ftp://ftp.postgresql.org/pub/source/v8.4.9/postgresql-8.4.9.tar.bz2
md5sum = d50b1e2bd2b2284ffc3c7009e70b3d08
extra_options =
--with-pgport=${tryton-config:db_port}
[postgresqlinit]
recipe = iw.recipe.cmd
on_install = true
on_update = false
datadir = ${buildout:directory}/var/postgresql
cmds =
test -e ${buildout:directory}/bin/psql || \
ln -s ${postgresql:location}/bin/psql ${buildout:directory}/bin/psql
test -e ${postgresqlinit:datadir} && exit 0
${postgresql:location}/bin/initdb --encoding=unicode ${postgresqlinit:datadir}
${postgresql:location}/bin/postgres --single -D ${postgresqlinit:datadir} \
template1 << EOF
CREATE USER ${tryton-config:db_user} WITH PASSWORD '${tryton-config:db_password}' CREATEDB ;
EOF
echo 'host all ${tryton-config:db_user} 0.0.0.0/0 md5' \
>> ${postgresqlinit:datadir}/pg_hba.conf
echo "listen_addresses = '*'" >> ${postgresqlinit:datadir}/postgresql.conf
echo "log_connections = on" >> ${postgresqlinit:datadir}/postgresql.conf
echo "log_statement = 'all'" >> ${postgresqlinit:datadir}/postgresql.conf
[py]
recipe = zc.recipe.egg
eggs = ${tryton:eggs}
extra-paths =
${buildout:directory}/parts/site-packages/
dependent-scripts = true
interpreter = py
[supervisor]
recipe = collective.recipe.supervisor
port = 127.0.0.1:24001
serverurl = http://127.0.0.1:24001
programs =
10 postgresql ${postgresql:location}/bin/postgres [-D ${postgresqlinit:datadir}] ${postgresql:location} true
20 trytond ${buildout:directory}/bin/py [ ${buildout:directory}/tools/trytond -c ${buildout:directory}/etc/trytond.conf ] ${buildout:directory} true