This repository has been archived by the owner on May 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuildout.cfg
126 lines (105 loc) · 2.51 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
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
[buildout]
parts =
supervisor-build
supervisord-conf
# webui parts
app
mkdirs
app_ini
app_cfg
test
newest = false
versions = versions
extensions += mr.developer
unzip = true
sources = sources
auto-checkout = *
eggs =
Pillow
collective.varnish.webgui
Paste
PasteScript
PasteDeploy
zcml =
[versions]
Flask = 0.9
Flask-Script = 0.5.3
WTForms = 1.0.2
Flask-Bootstrap = 2.3.0-2
Flask-GoogleLogin = 0.0.3
Flask-Security = 1.5.1
Flask-SQLAlchemy = 0.16
Flask-XML-RPC = 0.1.2
Flask-Babel = 0.8
Flask-Environments = 0.1
Flask-Mail = 0.7.3
python-varnish = 0.2.1
SQLAlchemy = 0.8.0
distribute = 0.6.27
setuptools = 0.6c11
zc.buildout = 1.5
[hosts]
supervisor = 127.0.0.1
varnishui = 127.0.0.1
[ports]
supervisor = 9001
varnishui = 5000
[sources]
collective.varnish.webgui = git [email protected]:cleberjsantos/collective.varnish.webgui.git
[supervisor-build]
recipe = collective.recipe.supervisor
plugins =
supervisor>=3.0a7
superlance
[supervisord-conf]
recipe = collective.recipe.template
input = ${buildout:directory}/etc/supervisord.conf_tmpl
output = ${buildout:directory}/etc/supervisord.conf
# WebUi varnish application
[app]
recipe = zc.recipe.egg
eggs = ${buildout:eggs}
interpreter = python-console
[server]
host = ${hosts:varnishui}
port = ${ports:varnishui}
logfiles = ${buildout:directory}/var/log
[mkdirs]
recipe = z3c.recipe.mkdir
paths =
${server:logfiles}
[app_ini]
recipe = collective.recipe.template
input = templates/deploy.ini.in
output = ${buildout:directory}/etc/${:outfile}
outfile = deploy.ini
app = collective.varnish.webgui
workers = 10
spawn_if_under = 5
max_requests = 100
[app_cfg]
recipe = collective.recipe.template
input = inline:
# Default is enable debug mode. Disable this in production!
DEBUG = True
# Interface
BOOTSTRAP_USE_MINIFIED = True
BOOTSTRAP_USE_CDN = True
BOOTSTRAP_HTML5_SHIM = True
BOOTSTRAP_JQUERY_VERSION = '1.9.1'
BOOTSTRAP_FONTAWESOME = True
# Experimental
#RECAPTCHA_PUBLIC_KEY = ''
# Database configuration
# E.g: dialect+driver://username:password@host:port/database
# Samples:
# postgresql://username:password@host:port/database
# postgresql+psycopg2://scott:tiger@localhost/mydatabase
# Default: SQLite memory (sqlite://)
SQLALCHEMY_DATABASE_URI = 'sqlite:///${buildout:directory}/test.db'
SQLALCHEMY_NATIVE_UNICODE = True
output = ${buildout:directory}/etc/deploy.cfg
[test]
recipe = pbp.recipe.noserunner
eggs = collective.varnish.webgui
defaults = -v