##// END OF EJS Templates
fixed test.ini
marcink -
r1079:f4254d4c beta
parent child Browse files
Show More
@@ -1,204 +1,206 b''
1 1 ################################################################################
2 2 ################################################################################
3 # rhodecode - Pylons environment configuration #
3 # RhodeCode - Pylons environment configuration #
4 4 # #
5 5 # The %(here)s variable will be replaced with the parent directory of this file#
6 6 ################################################################################
7 7
8 8 [DEFAULT]
9 9 debug = true
10 10 ################################################################################
11 11 ## Uncomment and replace with the address which should receive ##
12 12 ## any error reports after application crash ##
13 ## Additionally those settings will be used by rhodecode mailing system ##
13 ## Additionally those settings will be used by RhodeCode mailing system ##
14 14 ################################################################################
15 15 #email_to = admin@localhost
16 16 #error_email_from = paste_error@localhost
17 17 #app_email_from = rhodecode-noreply@localhost
18 18 #error_message =
19 19
20 20 #smtp_server = mail.server.com
21 21 #smtp_username =
22 22 #smtp_password =
23 23 #smtp_port =
24 24 #smtp_use_tls = false
25 25
26 26 [server:main]
27 27 ##nr of threads to spawn
28 28 threadpool_workers = 5
29 29
30 30 ##max request before thread respawn
31 31 threadpool_max_requests = 2
32 32
33 33 ##option to use threads of process
34 34 use_threadpool = true
35 35
36 36 use = egg:Paste#http
37 37 host = 127.0.0.1
38 38 port = 5000
39 39
40 40 [app:main]
41 41 use = egg:rhodecode
42 42 full_stack = true
43 43 static_files = true
44 44 lang=en
45 cache_dir = %(here)s/data
45 cache_dir = /tmp/data
46 46 index_dir = /tmp/index
47 app_instance_uuid = develop-test
47 48 cut_off_limit = 256000
48 49 force_https = false
50 commit_parse_limit = 25
49 51
50 52 ####################################
51 53 ### CELERY CONFIG ####
52 54 ####################################
53 55 use_celery = false
54 56 broker.host = localhost
55 57 broker.vhost = rabbitmqhost
56 58 broker.port = 5672
57 59 broker.user = rabbitmq
58 60 broker.password = qweqwe
59 61
60 62 celery.imports = rhodecode.lib.celerylib.tasks
61 63
62 64 celery.result.backend = amqp
63 65 celery.result.dburi = amqp://
64 66 celery.result.serialier = json
65 67
66 68 #celery.send.task.error.emails = true
67 69 #celery.amqp.task.result.expires = 18000
68 70
69 71 celeryd.concurrency = 2
70 72 #celeryd.log.file = celeryd.log
71 73 celeryd.log.level = debug
72 celeryd.max.tasks.per.child = 3
74 celeryd.max.tasks.per.child = 1
73 75
74 76 #tasks will never be sent to the queue, but executed locally instead.
75 77 celery.always.eager = false
76 78
77 79 ####################################
78 80 ### BEAKER CACHE ####
79 81 ####################################
80 beaker.cache.data_dir=/%(here)s/data/cache/data
81 beaker.cache.lock_dir=/%(here)s/data/cache/lock
82 beaker.cache.data_dir=/tmp/data/cache/data
83 beaker.cache.lock_dir=/tmp/data/cache/lock
82 84 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
83 85
84 86 beaker.cache.super_short_term.type=memory
85 87 beaker.cache.super_short_term.expire=10
86 88
87 89 beaker.cache.short_term.type=memory
88 90 beaker.cache.short_term.expire=60
89 91
90 92 beaker.cache.long_term.type=memory
91 93 beaker.cache.long_term.expire=36000
92 94
93 95
94 96 beaker.cache.sql_cache_short.type=memory
95 beaker.cache.sql_cache_short.expire=5
97 beaker.cache.sql_cache_short.expire=10
96 98
97 99 beaker.cache.sql_cache_med.type=memory
98 100 beaker.cache.sql_cache_med.expire=360
99 101
100 102 beaker.cache.sql_cache_long.type=file
101 103 beaker.cache.sql_cache_long.expire=3600
102 104
103 105 ####################################
104 106 ### BEAKER SESSION ####
105 107 ####################################
106 108 ## Type of storage used for the session, current types are
107 109 ## dbm, file, memcached, database, and memory.
108 110 ## The storage uses the Container API
109 111 ##that is also used by the cache system.
110 112 beaker.session.type = file
111 113
112 114 beaker.session.key = rhodecode
113 115 beaker.session.secret = g654dcno0-9873jhgfreyu
114 116 beaker.session.timeout = 36000
115 117
116 118 ##auto save the session to not to use .save()
117 119 beaker.session.auto = False
118 120
119 121 ##true exire at browser close
120 122 #beaker.session.cookie_expires = 3600
121 123
122 124
123 125 ################################################################################
124 126 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
125 127 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
126 128 ## execute malicious code after an exception is raised. ##
127 129 ################################################################################
128 130 #set debug = false
129 131
130 132 ##################################
131 133 ### LOGVIEW CONFIG ###
132 134 ##################################
133 135 logview.sqlalchemy = #faa
134 136 logview.pylons.templating = #bfb
135 137 logview.pylons.util = #eee
136 138
137 139 #########################################################
138 140 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
139 141 #########################################################
140 142 #sqlalchemy.db1.url = sqlite:///%(here)s/test.db
141 143 sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode_tests
142 144 #sqlalchemy.db1.echo = False
143 145 #sqlalchemy.db1.pool_recycle = 3600
144 146 sqlalchemy.convert_unicode = true
145 147
146 148 ################################
147 149 ### LOGGING CONFIGURATION ####
148 150 ################################
149 151 [loggers]
150 keys = root, routes, rhodecode, sqlalchemy
152 keys = root, routes, rhodecode, sqlalchemy,beaker,templates
151 153
152 154 [handlers]
153 155 keys = console
154 156
155 157 [formatters]
156 158 keys = generic,color_formatter
157 159
158 160 #############
159 161 ## LOGGERS ##
160 162 #############
161 163 [logger_root]
162 164 level = ERROR
163 165 handlers = console
164 166
165 167 [logger_routes]
166 168 level = ERROR
167 169 handlers = console
168 170 qualname = routes.middleware
169 171 # "level = DEBUG" logs the route matched and routing variables.
170 172
171 173 [logger_rhodecode]
172 174 level = ERROR
173 175 handlers = console
174 176 qualname = rhodecode
175 177 propagate = 0
176 178
177 179 [logger_sqlalchemy]
178 180 level = ERROR
179 181 handlers = console
180 182 qualname = sqlalchemy.engine
181 183 propagate = 0
182 184
183 185 ##############
184 186 ## HANDLERS ##
185 187 ##############
186 188
187 189 [handler_console]
188 190 class = StreamHandler
189 191 args = (sys.stderr,)
190 192 level = NOTSET
191 193 formatter = color_formatter
192 194
193 195 ################
194 196 ## FORMATTERS ##
195 197 ################
196 198
197 199 [formatter_generic]
198 200 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
199 201 datefmt = %Y-%m-%d %H:%M:%S
200 202
201 203 [formatter_color_formatter]
202 204 class=rhodecode.lib.colored_formatter.ColorFormatter
203 205 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
204 206 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now