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