forked from sitn/crdppf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildout.cfg
154 lines (127 loc) · 3.75 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[buildout]
extends = crdppf_core/versions.cfg
index = http://pypi.camptocamp.net/pypi/
find-links = http://sitn.ne.ch/web/diffusion/mapfish/eggs
develop-eggs-directory = buildout/develop-eggs
eggs-directory = buildout/eggs
parts-directory = buildout/parts
bin-directory = buildout/bin
show-picked-versions = true
versions = versions
parts =
pyramid
fix-perm
modwsgi
template
jsbuild
print-war
develop = .
crdppf_core
newest = false
prefer-final = true
[vars]
# PROJECT
instanceid = overwrite_me
egg = crdppfportal
project = crdppf_core/crdppf
# Host of the application
host = overwrite_me
yaml_dbconfig_file = config_db.yaml
# default language (currently Fr or De)
default_language = Fr
disclaimer = overwrite_me
# DATABASE
# database user
dbuser = overwrite_me
# database password
dbpassword = overwrite_me
# database host
dbhost = overwrite_me
# database port
dbport = overwrite_me
# database name
db = overwrite_me
# MAPSERVER
mapserv_allow = overwrite_me
mapserverexec = overwrite_me
# CRDPPF webapp definitions
crdppf_wms = http://localhost/${vars:instanceid}/wmscrdppf
# FEDERAL WEBSERVICES
ch_wms = http://wms.geo.admin.ch/
# Federal feature service base url
chfs_baseurl = https://api3.geo.admin.ch/rest/services/api/MapServer/identify
# FULLTEXTSEARCH - Define a fulltextsearchURL
fulltextsearch_url = overwrite_me
# BACKGROUND LAYERS - Define a mapproxyurl and other OpenLayers parameters for map.js and layertree.js
mapproxyurl = overwrite_me
tilesImageFormat = overwrite_me
mapExtent = overwrite_me
mapMaxExtent = overwrite_me
mapCenter = overwrite_me
mapSRS = overwrite_me
mapResolutions = overwrite_me
mapMatrixSet = overwrite_me
mapOverviewExtent = overwrite_me
mapOverviewSizeW = overwrite_me
mapOverviewSizeH = overwrite_me
keymap = overwrite_me
# MAPSERVER map extent
mapExtentMinX = overwrite_me
mapExtentMinY = overwrite_me
mapExtentMaxX = overwrite_me
mapExtentMaxY = overwrite_me
# Logon -> Should the system write to the log (pserve console or Apache error.log file)
logon = overwrite_me
# Waitress port
waitress_port = overwrite_me
# Print level logger (DEBUG if development else ERROR)
print_level_logger = ERROR
[pyramid]
recipe = zc.recipe.egg
dependent-scripts = true
eggs =
pyramid
${vars:egg}
interpreter = py
[modwsgi]
recipe = collective.recipe.modwsgi
eggs = ${vars:egg}
config-file = ${buildout:directory}/production.ini
[template]
recipe = z3c.recipe.filetemplate
source-directory = .
exclude-directories = buildout
extends = vars
[jsbuild]
recipe = JSTools:buildjs
resource-dir = ${buildout:directory}/crdppf_core/jsbuild
# the following jsbuild config files must be written on
# one line, otherwise Paste will throw a syntax error
config = ${jsbuild:resource-dir}/app.cfg
output-dir = ${vars:project}/static/build
compress = True
[fix-perm]
recipe = collective.recipe.cmd:py
on_install = true
on_update = true
cmds =
>>> if sys.platform.startswith('linux'):
>>> from subprocess import call, Popen, PIPE
>>> call(['chmod', '--quiet', '-R', 'o+w', 'crdppfportal/crdppf/static/public/pdf'])
>>> call(['chmod', '--quiet', '-R', 'o+w', 'crdppfportal/crdppf/static/public/temp_files'])
>>> dirs = Popen(['find', '-type', 'd'], stdout=PIPE).communicate()[0]
>>> for d in [d for d in dirs.split('\n') if len(d) > 0]:
>>> call(['chmod', '--quiet', 'g+s', d])
>>> call(['chmod', '--quiet', '-R', 'g+rw,o+r', '.'])
>>> # remove wsgi file (rights issue)
>>> call(['rm', '-f', 'buildout/parts/modwsgi/wsgi'])
[print-war]
recipe = c2c.recipe.jarfile
mode = update
basedir = crdppf_core/print/
basewar = print-servlet.war
input = ${print-war:basewar}
WEB-INF/classes/*.xml
WEB-INF/lib/*.jar
print-apps/*
output = C:/ApacheTomcat7/webapps/print-${vars:instanceid}.war