##// END OF EJS Templates
removed unneded options from config files
marcink -
r342:c71dc6ef default
parent child Browse files
Show More
@@ -1,136 +1,133 b''
1 ################################################################################
1 ################################################################################
2 ################################################################################
2 ################################################################################
3 # pylons_app - Pylons environment configuration #
3 # pylons_app - 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 ##
11 ## Uncomment and replace with the address ##
12 ## which should receive any error reports ##
12 ## which should receive any error reports ##
13 ############################################
13 ############################################
14 #email_to = admin@localhost
14 #email_to = admin@localhost
15 #smtp_server = mail.server.com
15 #smtp_server = mail.server.com
16 #error_email_from = paste_error@localhost
16 #error_email_from = paste_error@localhost
17 #smtp_username =
17 #smtp_username =
18 #smtp_password =
18 #smtp_password =
19 #error_message = 'mercurial crash !'
19 #error_message = 'mercurial crash !'
20
20
21 [server:main]
21 [server:main]
22 ##nr of threads to spawn
22 ##nr of threads to spawn
23 threadpool_workers = 5
23 threadpool_workers = 5
24
24
25 ##max request before
25 ##max request before
26 threadpool_max_requests = 2
26 threadpool_max_requests = 2
27
27
28 ##option to use threads of process
28 ##option to use threads of process
29 use_threadpool = true
29 use_threadpool = true
30
30
31 use = egg:Paste#http
31 use = egg:Paste#http
32 host = 127.0.0.1
32 host = 127.0.0.1
33 port = 5000
33 port = 5000
34
34
35 [app:main]
35 [app:main]
36 use = egg:pylons_app
36 use = egg:pylons_app
37 full_stack = true
37 full_stack = true
38 static_files = true
38 static_files = true
39 lang=en
39 lang=en
40 cache_dir = %(here)s/data
40 cache_dir = %(here)s/data
41 ##a name for our application
42 hg_app_name = Python-works
43 hg_app_repo_conf = repositories.config
44
41
45 ####################################
42 ####################################
46 ### BEAKER CACHE ####
43 ### BEAKER CACHE ####
47 ####################################
44 ####################################
48 beaker.cache.data_dir=/%(here)s/data/cache/data
45 beaker.cache.data_dir=/%(here)s/data/cache/data
49 beaker.cache.lock_dir=/%(here)s/data/cache/lock
46 beaker.cache.lock_dir=/%(here)s/data/cache/lock
50 beaker.cache.regions=short_term,long_term
47 beaker.cache.regions=short_term,long_term
51 beaker.cache.long_term.type=memory
48 beaker.cache.long_term.type=memory
52 beaker.cache.long_term.expire=36000
49 beaker.cache.long_term.expire=36000
53 beaker.cache.short_term.type=memory
50 beaker.cache.short_term.type=memory
54 beaker.cache.short_term.expire=60
51 beaker.cache.short_term.expire=60
55
52
56 ################################################################################
53 ################################################################################
57 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
54 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
58 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
55 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
59 ## execute malicious code after an exception is raised. ##
56 ## execute malicious code after an exception is raised. ##
60 ################################################################################
57 ################################################################################
61 #set debug = false
58 #set debug = false
62
59
63 ##################################
60 ##################################
64 ### LOGVIEW CONFIG ###
61 ### LOGVIEW CONFIG ###
65 ##################################
62 ##################################
66 logview.sqlalchemy = #faa
63 logview.sqlalchemy = #faa
67 logview.pylons.templating = #bfb
64 logview.pylons.templating = #bfb
68 logview.pylons.util = #eee
65 logview.pylons.util = #eee
69
66
70 #########################################################
67 #########################################################
71 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
68 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
72 #########################################################
69 #########################################################
73 sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db
70 sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db
74 #sqlalchemy.db1.echo = False
71 #sqlalchemy.db1.echo = False
75 #sqlalchemy.db1.pool_recycle = 3600
72 #sqlalchemy.db1.pool_recycle = 3600
76 sqlalchemy.convert_unicode = true
73 sqlalchemy.convert_unicode = true
77
74
78 ################################
75 ################################
79 ### LOGGING CONFIGURATION ####
76 ### LOGGING CONFIGURATION ####
80 ################################
77 ################################
81 [loggers]
78 [loggers]
82 keys = root, routes, pylons_app, sqlalchemy
79 keys = root, routes, pylons_app, sqlalchemy
83
80
84 [handlers]
81 [handlers]
85 keys = console
82 keys = console
86
83
87 [formatters]
84 [formatters]
88 keys = generic,color_formatter
85 keys = generic,color_formatter
89
86
90 #############
87 #############
91 ## LOGGERS ##
88 ## LOGGERS ##
92 #############
89 #############
93 [logger_root]
90 [logger_root]
94 level = NOTSET
91 level = NOTSET
95 handlers = console
92 handlers = console
96
93
97 [logger_routes]
94 [logger_routes]
98 level = DEBUG
95 level = DEBUG
99 handlers = console
96 handlers = console
100 qualname = routes.middleware
97 qualname = routes.middleware
101 # "level = DEBUG" logs the route matched and routing variables.
98 # "level = DEBUG" logs the route matched and routing variables.
102
99
103 [logger_pylons_app]
100 [logger_pylons_app]
104 level = DEBUG
101 level = DEBUG
105 handlers = console
102 handlers = console
106 qualname = pylons_app
103 qualname = pylons_app
107 propagate = 0
104 propagate = 0
108
105
109 [logger_sqlalchemy]
106 [logger_sqlalchemy]
110 level = ERROR
107 level = ERROR
111 handlers = console
108 handlers = console
112 qualname = sqlalchemy.engine
109 qualname = sqlalchemy.engine
113 propagate = 0
110 propagate = 0
114
111
115 ##############
112 ##############
116 ## HANDLERS ##
113 ## HANDLERS ##
117 ##############
114 ##############
118
115
119 [handler_console]
116 [handler_console]
120 class = StreamHandler
117 class = StreamHandler
121 args = (sys.stderr,)
118 args = (sys.stderr,)
122 level = NOTSET
119 level = NOTSET
123 formatter = color_formatter
120 formatter = color_formatter
124
121
125 ################
122 ################
126 ## FORMATTERS ##
123 ## FORMATTERS ##
127 ################
124 ################
128
125
129 [formatter_generic]
126 [formatter_generic]
130 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
127 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
131 datefmt = %Y-%m-%d %H:%M:%S
128 datefmt = %Y-%m-%d %H:%M:%S
132
129
133 [formatter_color_formatter]
130 [formatter_color_formatter]
134 class=pylons_app.lib.colored_formatter.ColorFormatter
131 class=pylons_app.lib.colored_formatter.ColorFormatter
135 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
132 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
136 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
133 datefmt = %Y-%m-%d %H:%M:%S
@@ -1,136 +1,134 b''
1 ################################################################################
1 ################################################################################
2 ################################################################################
2 ################################################################################
3 # pylons_app - Pylons environment configuration #
3 # pylons_app - 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 ##
11 ## Uncomment and replace with the address ##
12 ## which should receive any error reports ##
12 ## which should receive any error reports ##
13 ############################################
13 ############################################
14 #email_to = admin@localhost
14 #email_to = admin@localhost
15 #smtp_server = mail.server.com
15 #smtp_server = mail.server.com
16 #error_email_from = paste_error@localhost
16 #error_email_from = paste_error@localhost
17 #smtp_username =
17 #smtp_username =
18 #smtp_password =
18 #smtp_password =
19 #error_message = 'mercurial crash !'
19 #error_message = 'mercurial crash !'
20
20
21 [server:main]
21 [server:main]
22 ##nr of threads to spawn
22 ##nr of threads to spawn
23 threadpool_workers = 5
23 threadpool_workers = 5
24
24
25 ##max request before
25 ##max request before
26 threadpool_max_requests = 2
26 threadpool_max_requests = 2
27
27
28 ##option to use threads of process
28 ##option to use threads of process
29 use_threadpool = true
29 use_threadpool = true
30
30
31 use = egg:Paste#http
31 use = egg:Paste#http
32 host = 127.0.0.1
32 host = 127.0.0.1
33 port = 8001
33 port = 8001
34
34
35 [app:main]
35 [app:main]
36 use = egg:pylons_app
36 use = egg:pylons_app
37 full_stack = true
37 full_stack = true
38 static_files = false
38 static_files = false
39 lang=en
39 lang=en
40 cache_dir = %(here)s/data
40 cache_dir = %(here)s/data
41 ##a name for our application
41
42 hg_app_name = Python-works
43 hg_app_repo_conf = repositories.config
44
42
45 ####################################
43 ####################################
46 ### BEAKER CACHE ####
44 ### BEAKER CACHE ####
47 ####################################
45 ####################################
48 beaker.cache.data_dir=/%(here)s/data/cache/data
46 beaker.cache.data_dir=/%(here)s/data/cache/data
49 beaker.cache.lock_dir=/%(here)s/data/cache/lock
47 beaker.cache.lock_dir=/%(here)s/data/cache/lock
50 beaker.cache.regions=short_term,long_term
48 beaker.cache.regions=short_term,long_term
51 beaker.cache.long_term.type=memory
49 beaker.cache.long_term.type=memory
52 beaker.cache.long_term.expire=36000
50 beaker.cache.long_term.expire=36000
53 beaker.cache.short_term.type=memory
51 beaker.cache.short_term.type=memory
54 beaker.cache.short_term.expire=60
52 beaker.cache.short_term.expire=60
55
53
56 ################################################################################
54 ################################################################################
57 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
55 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
58 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
56 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
59 ## execute malicious code after an exception is raised. ##
57 ## execute malicious code after an exception is raised. ##
60 ################################################################################
58 ################################################################################
61 set debug = false
59 set debug = false
62
60
63 ##################################
61 ##################################
64 ### LOGVIEW CONFIG ###
62 ### LOGVIEW CONFIG ###
65 ##################################
63 ##################################
66 logview.sqlalchemy = #faa
64 logview.sqlalchemy = #faa
67 logview.pylons.templating = #bfb
65 logview.pylons.templating = #bfb
68 logview.pylons.util = #eee
66 logview.pylons.util = #eee
69
67
70 #########################################################
68 #########################################################
71 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
69 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
72 #########################################################
70 #########################################################
73 sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db
71 sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db
74 #sqlalchemy.db1.echo = False
72 #sqlalchemy.db1.echo = False
75 #sqlalchemy.db1.pool_recycle = 3600
73 #sqlalchemy.db1.pool_recycle = 3600
76 sqlalchemy.convert_unicode = true
74 sqlalchemy.convert_unicode = true
77
75
78 ################################
76 ################################
79 ### LOGGING CONFIGURATION ####
77 ### LOGGING CONFIGURATION ####
80 ################################
78 ################################
81 [loggers]
79 [loggers]
82 keys = root, routes, pylons_app, sqlalchemy
80 keys = root, routes, pylons_app, sqlalchemy
83
81
84 [handlers]
82 [handlers]
85 keys = console
83 keys = console
86
84
87 [formatters]
85 [formatters]
88 keys = generic,color_formatter
86 keys = generic,color_formatter
89
87
90 #############
88 #############
91 ## LOGGERS ##
89 ## LOGGERS ##
92 #############
90 #############
93 [logger_root]
91 [logger_root]
94 level = INFO
92 level = INFO
95 handlers = console
93 handlers = console
96
94
97 [logger_routes]
95 [logger_routes]
98 level = INFO
96 level = INFO
99 handlers = console
97 handlers = console
100 qualname = routes.middleware
98 qualname = routes.middleware
101 # "level = DEBUG" logs the route matched and routing variables.
99 # "level = DEBUG" logs the route matched and routing variables.
102
100
103 [logger_pylons_app]
101 [logger_pylons_app]
104 level = DEBUG
102 level = DEBUG
105 handlers = console
103 handlers = console
106 qualname = pylons_app
104 qualname = pylons_app
107 propagate = 0
105 propagate = 0
108
106
109 [logger_sqlalchemy]
107 [logger_sqlalchemy]
110 level = ERROR
108 level = ERROR
111 handlers = console
109 handlers = console
112 qualname = sqlalchemy.engine
110 qualname = sqlalchemy.engine
113 propagate = 0
111 propagate = 0
114
112
115 ##############
113 ##############
116 ## HANDLERS ##
114 ## HANDLERS ##
117 ##############
115 ##############
118
116
119 [handler_console]
117 [handler_console]
120 class = StreamHandler
118 class = StreamHandler
121 args = (sys.stderr,)
119 args = (sys.stderr,)
122 level = NOTSET
120 level = NOTSET
123 formatter = color_formatter
121 formatter = color_formatter
124
122
125 ################
123 ################
126 ## FORMATTERS ##
124 ## FORMATTERS ##
127 ################
125 ################
128
126
129 [formatter_generic]
127 [formatter_generic]
130 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
128 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
131 datefmt = %Y-%m-%d %H:%M:%S
129 datefmt = %Y-%m-%d %H:%M:%S
132
130
133 [formatter_color_formatter]
131 [formatter_color_formatter]
134 class=pylons_app.lib.colored_formatter.ColorFormatter
132 class=pylons_app.lib.colored_formatter.ColorFormatter
135 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
133 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
136 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
134 datefmt = %Y-%m-%d %H:%M:%S
General Comments 0
You need to be logged in to leave comments. Login now