/
buildout.cfg
47 lines (38 loc) · 1.11 KB
/
buildout.cfg
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
[buildout]
newest = false
# set in ~/.buildout/default.cfg
#eggs-directory = ./buildout-cache/eggs
#download-cache = ./buildout-cache/download
develop = .
parts = interpreter supervisor
[mongodb]
cmd = /opt/mongodb/bin/mongod
config_file = /opt/webmailbox/conf/mongodb.conf
[redis]
cmd = /opt/redis/bin/redis-server
config_file = /opt/webmailbox/conf/redis_230.conf
#config_file = /opt/webmailbox/conf/redis.conf # < 2.3
[webmailbox]
cmd = ${buildout:bin-directory}/python
script = ${buildout:directory}/server.py
port = 8000
[fetch]
cmd = ${buildout:bin-directory}/python
script = ${buildout:directory}/fetch.py
interval = 16
[interpreter]
recipe = zc.recipe.egg
eggs = tornado
pymongo
redis
webmailbox
interpreter = python
[supervisor]
recipe = collective.recipe.supervisor
user = zkc
password = z123456
programs =
10 webmailbox-mongodb ${mongodb:cmd} [-f ${mongodb:config_file}] true
20 webmailbox-redis ${redis:cmd} [${redis:config_file}] true
30 webmailbox ${webmailbox:cmd} [${webmailbox:script} --port=${webmailbox:port}] true
40 webmailbox-fetch ${fetch:cmd} [${fetch:script}]