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