Show More
@@ -1,134 +1,135 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 = marcin.kuzminski@etelko.pl |
|
14 | #email_to = marcin.kuzminski@etelko.pl | |
15 | #smtp_server = mail.etelko.pl |
|
15 | #smtp_server = mail.etelko.pl | |
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 | repos_name = Python-works |
|
41 | ##a name for our application | |
|
42 | repo_name = Python-works | |||
42 |
|
43 | |||
43 | #################################### |
|
44 | #################################### | |
44 | ### BEAKER CACHE #### |
|
45 | ### BEAKER CACHE #### | |
45 | #################################### |
|
46 | #################################### | |
46 | beaker.cache.data_dir=/tmp/cache/data |
|
47 | beaker.cache.data_dir=/tmp/cache/data | |
47 | beaker.cache.lock_dir=/tmp/cache/lock |
|
48 | beaker.cache.lock_dir=/tmp/cache/lock | |
48 | beaker.cache.regions=short_term,long_term |
|
49 | beaker.cache.regions=short_term,long_term | |
49 | beaker.cache.short_term.type=file |
|
50 | beaker.cache.short_term.type=file | |
50 | beaker.cache.short_term.expire=3600 |
|
51 | beaker.cache.short_term.expire=3600 | |
51 | beaker.cache.short_term.type=memory |
|
52 | beaker.cache.short_term.type=memory | |
52 | beaker.cache.short_term.expire=60 |
|
53 | beaker.cache.short_term.expire=60 | |
53 |
|
54 | |||
54 | ################################################################################ |
|
55 | ################################################################################ | |
55 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
56 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
56 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
57 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
57 | ## execute malicious code after an exception is raised. ## |
|
58 | ## execute malicious code after an exception is raised. ## | |
58 | ################################################################################ |
|
59 | ################################################################################ | |
59 | #set debug = false |
|
60 | #set debug = false | |
60 |
|
61 | |||
61 | ################################## |
|
62 | ################################## | |
62 | ### LOGVIEW CONFIG ### |
|
63 | ### LOGVIEW CONFIG ### | |
63 | ################################## |
|
64 | ################################## | |
64 | logview.sqlalchemy = #faa |
|
65 | logview.sqlalchemy = #faa | |
65 | logview.pylons.templating = #bfb |
|
66 | logview.pylons.templating = #bfb | |
66 | logview.pylons.util = #eee |
|
67 | logview.pylons.util = #eee | |
67 |
|
68 | |||
68 | ######################################################### |
|
69 | ######################################################### | |
69 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
70 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | |
70 | ######################################################### |
|
71 | ######################################################### | |
71 | sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db |
|
72 | sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db | |
72 | #sqlalchemy.db1.echo = False |
|
73 | #sqlalchemy.db1.echo = False | |
73 | #sqlalchemy.db1.pool_recycle = 3600 |
|
74 | #sqlalchemy.db1.pool_recycle = 3600 | |
74 | sqlalchemy.convert_unicode = true |
|
75 | sqlalchemy.convert_unicode = true | |
75 |
|
76 | |||
76 | ################################ |
|
77 | ################################ | |
77 | ### LOGGING CONFIGURATION #### |
|
78 | ### LOGGING CONFIGURATION #### | |
78 | ################################ |
|
79 | ################################ | |
79 | [loggers] |
|
80 | [loggers] | |
80 | keys = root, routes, pylons_app, sqlalchemy |
|
81 | keys = root, routes, pylons_app, sqlalchemy | |
81 |
|
82 | |||
82 | [handlers] |
|
83 | [handlers] | |
83 | keys = console |
|
84 | keys = console | |
84 |
|
85 | |||
85 | [formatters] |
|
86 | [formatters] | |
86 | keys = generic,color_formatter |
|
87 | keys = generic,color_formatter | |
87 |
|
88 | |||
88 | ############# |
|
89 | ############# | |
89 | ## LOGGERS ## |
|
90 | ## LOGGERS ## | |
90 | ############# |
|
91 | ############# | |
91 | [logger_root] |
|
92 | [logger_root] | |
92 | level = NOTSET |
|
93 | level = NOTSET | |
93 | handlers = console |
|
94 | handlers = console | |
94 |
|
95 | |||
95 | [logger_routes] |
|
96 | [logger_routes] | |
96 | level = DEBUG |
|
97 | level = DEBUG | |
97 | handlers = console |
|
98 | handlers = console | |
98 | qualname = routes.middleware |
|
99 | qualname = routes.middleware | |
99 | # "level = DEBUG" logs the route matched and routing variables. |
|
100 | # "level = DEBUG" logs the route matched and routing variables. | |
100 |
|
101 | |||
101 | [logger_pylons_app] |
|
102 | [logger_pylons_app] | |
102 | level = DEBUG |
|
103 | level = DEBUG | |
103 | handlers = console |
|
104 | handlers = console | |
104 | qualname = pylons_app |
|
105 | qualname = pylons_app | |
105 | propagate = 0 |
|
106 | propagate = 0 | |
106 |
|
107 | |||
107 | [logger_sqlalchemy] |
|
108 | [logger_sqlalchemy] | |
108 | level = ERROR |
|
109 | level = ERROR | |
109 | handlers = console |
|
110 | handlers = console | |
110 | qualname = sqlalchemy.engine |
|
111 | qualname = sqlalchemy.engine | |
111 | propagate = 0 |
|
112 | propagate = 0 | |
112 |
|
113 | |||
113 | ############## |
|
114 | ############## | |
114 | ## HANDLERS ## |
|
115 | ## HANDLERS ## | |
115 | ############## |
|
116 | ############## | |
116 |
|
117 | |||
117 | [handler_console] |
|
118 | [handler_console] | |
118 | class = StreamHandler |
|
119 | class = StreamHandler | |
119 | args = (sys.stderr,) |
|
120 | args = (sys.stderr,) | |
120 | level = NOTSET |
|
121 | level = NOTSET | |
121 | formatter = color_formatter |
|
122 | formatter = color_formatter | |
122 |
|
123 | |||
123 | ################ |
|
124 | ################ | |
124 | ## FORMATTERS ## |
|
125 | ## FORMATTERS ## | |
125 | ################ |
|
126 | ################ | |
126 |
|
127 | |||
127 | [formatter_generic] |
|
128 | [formatter_generic] | |
128 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
129 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
129 | datefmt = %Y-%m-%d %H:%M:%S |
|
130 | datefmt = %Y-%m-%d %H:%M:%S | |
130 |
|
131 | |||
131 | [formatter_color_formatter] |
|
132 | [formatter_color_formatter] | |
132 | class=pylons_app.lib.colored_formatter.ColorFormatter |
|
133 | class=pylons_app.lib.colored_formatter.ColorFormatter | |
133 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
134 | format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
134 | datefmt = %Y-%m-%d %H:%M:%S No newline at end of file |
|
135 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -1,134 +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 = marcin.kuzminski@etelko.pl |
|
14 | #email_to = marcin.kuzminski@etelko.pl | |
15 | #smtp_server = mail.etelko.pl |
|
15 | #smtp_server = mail.etelko.pl | |
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 = true |
|
38 | static_files = true | |
39 | lang=en |
|
39 | lang=en | |
40 | cache_dir = %(here)s/data |
|
40 | cache_dir = %(here)s/data | |
41 | repos_name = Python-works |
|
41 | repos_name = Python-works | |
42 |
|
42 | |||
43 | #################################### |
|
43 | #################################### | |
44 | ### BEAKER CACHE #### |
|
44 | ### BEAKER CACHE #### | |
45 | #################################### |
|
45 | #################################### | |
46 | beaker.cache.data_dir=/tmp/cache/data |
|
46 | beaker.cache.data_dir=/tmp/cache/data | |
47 | beaker.cache.lock_dir=/tmp/cache/lock |
|
47 | beaker.cache.lock_dir=/tmp/cache/lock | |
48 | beaker.cache.regions=short_term,long_term |
|
48 | beaker.cache.regions=short_term,long_term | |
49 | beaker.cache.short_term.type=file |
|
49 | beaker.cache.short_term.type=file | |
50 | beaker.cache.short_term.expire=3600 |
|
50 | beaker.cache.short_term.expire=3600 | |
51 | beaker.cache.short_term.type=memory |
|
51 | beaker.cache.short_term.type=memory | |
52 | beaker.cache.short_term.expire=60 |
|
52 | beaker.cache.short_term.expire=60 | |
53 |
|
53 | |||
54 | ################################################################################ |
|
54 | ################################################################################ | |
55 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## |
|
55 | ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ## | |
56 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## |
|
56 | ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ## | |
57 | ## execute malicious code after an exception is raised. ## |
|
57 | ## execute malicious code after an exception is raised. ## | |
58 | ################################################################################ |
|
58 | ################################################################################ | |
59 | set debug = false |
|
59 | set debug = false | |
60 |
|
60 | |||
61 | ################################## |
|
61 | ################################## | |
62 | ### LOGVIEW CONFIG ### |
|
62 | ### LOGVIEW CONFIG ### | |
63 | ################################## |
|
63 | ################################## | |
64 | logview.sqlalchemy = #faa |
|
64 | logview.sqlalchemy = #faa | |
65 | logview.pylons.templating = #bfb |
|
65 | logview.pylons.templating = #bfb | |
66 | logview.pylons.util = #eee |
|
66 | logview.pylons.util = #eee | |
67 |
|
67 | |||
68 | ######################################################### |
|
68 | ######################################################### | |
69 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### |
|
69 | ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ### | |
70 | ######################################################### |
|
70 | ######################################################### | |
71 | sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db |
|
71 | sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db | |
72 | #sqlalchemy.db1.echo = True |
|
72 | #sqlalchemy.db1.echo = True | |
73 | #sqlalchemy.db1.pool_recycle = 3600 |
|
73 | #sqlalchemy.db1.pool_recycle = 3600 | |
74 | sqlalchemy.convert_unicode = true |
|
74 | sqlalchemy.convert_unicode = true | |
75 |
|
75 | |||
76 | ################################ |
|
76 | ################################ | |
77 | ### LOGGING CONFIGURATION #### |
|
77 | ### LOGGING CONFIGURATION #### | |
78 | ################################ |
|
78 | ################################ | |
79 | [loggers] |
|
79 | [loggers] | |
80 | keys = root, routes, pylons_app, sqlalchemy |
|
80 | keys = root, routes, pylons_app, sqlalchemy | |
81 |
|
81 | |||
82 | [handlers] |
|
82 | [handlers] | |
83 | keys = console |
|
83 | keys = console | |
84 |
|
84 | |||
85 | [formatters] |
|
85 | [formatters] | |
86 | keys = generic |
|
86 | keys = generic,color_formatter | |
87 |
|
87 | |||
88 | ############# |
|
88 | ############# | |
89 | ## LOGGERS ## |
|
89 | ## LOGGERS ## | |
90 | ############# |
|
90 | ############# | |
91 | [logger_root] |
|
91 | [logger_root] | |
92 | level = INFO |
|
92 | level = INFO | |
93 | handlers = console |
|
93 | handlers = console | |
94 |
|
94 | |||
95 | [logger_routes] |
|
95 | [logger_routes] | |
96 | level = INFO |
|
96 | level = INFO | |
97 | handlers = console |
|
97 | handlers = console | |
98 | qualname = routes.middleware |
|
98 | qualname = routes.middleware | |
99 | # "level = DEBUG" logs the route matched and routing variables. |
|
99 | # "level = DEBUG" logs the route matched and routing variables. | |
100 |
|
100 | |||
101 | [logger_pylons_app] |
|
101 | [logger_pylons_app] | |
102 | level = DEBUG |
|
102 | level = DEBUG | |
103 | handlers = console |
|
103 | handlers = console | |
104 | qualname = pylons_app |
|
104 | qualname = pylons_app | |
105 | propagate = 0 |
|
105 | propagate = 0 | |
106 |
|
106 | |||
107 | [logger_sqlalchemy] |
|
107 | [logger_sqlalchemy] | |
108 | level = ERROR |
|
108 | level = ERROR | |
109 | handlers = console |
|
109 | handlers = console | |
110 | qualname = sqlalchemy.engine |
|
110 | qualname = sqlalchemy.engine | |
111 | propagate = 0 |
|
111 | propagate = 0 | |
112 |
|
112 | |||
113 | ############## |
|
113 | ############## | |
114 | ## HANDLERS ## |
|
114 | ## HANDLERS ## | |
115 | ############## |
|
115 | ############## | |
116 |
|
116 | |||
117 | [handler_console] |
|
117 | [handler_console] | |
118 | class = StreamHandler |
|
118 | class = StreamHandler | |
119 | args = (sys.stderr,) |
|
119 | args = (sys.stderr,) | |
120 | level = NOTSET |
|
120 | level = NOTSET | |
121 |
formatter = |
|
121 | formatter = color_formatter | |
122 |
|
122 | |||
123 | ################ |
|
123 | ################ | |
124 | ## FORMATTERS ## |
|
124 | ## FORMATTERS ## | |
125 | ################ |
|
125 | ################ | |
126 |
|
126 | |||
127 | [formatter_generic] |
|
127 | [formatter_generic] | |
128 | 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 | |
129 | datefmt = %Y-%m-%d %H:%M:%S |
|
129 | datefmt = %Y-%m-%d %H:%M:%S | |
130 |
|
130 | |||
131 | [formatter_color_formatter] |
|
131 | [formatter_color_formatter] | |
132 | class=pylons_app.lib.colored_formatter.ColorFormatter |
|
132 | class=pylons_app.lib.colored_formatter.ColorFormatter | |
133 | 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 | |
134 | 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