##// END OF EJS Templates
major app speedup moved the wsgi creation to app globals, in order to make it run only once....
Marcin Kuzminski -
r10:525ed90e default
parent child Browse files
Show More

The requested changes are too big and content was truncated. Show full diff

@@ -1,116 +1,114 b''
1 1 ########################################################################
2 2 ##
3 3 ## pylons_app - Pylons development environment configuration
4 4 ##
5 5 ## The %(here)s variable will be replaced with the parent directory of this file
6 6 ##
7 [exe]
8 command = serve
9 daemon = false
10 user = nobody
11 group = nobody
12
7 13 [DEFAULT]
8 14 debug = true
9 15 ## Uncomment and replace with the address which should receive any error reports
10 16 email_to = marcin.kuzminski@etelko.pl
11 17 smtp_server = localhost
12 18 error_email_from = paste_error@localhost
13 19
14 20 [server:main]
15 21 use = egg:Paste#http
16 22 host = 127.0.0.1
17 port = 5000
23 port = 8001
18 24
19 25 [app:main]
20 26 use = egg:pylons_app
21 27 full_stack = true
22 28 static_files = false
23 29 ##default lang
24 30 lang=en
25 31
26 32 cache_dir = %(here)s/data
27 33 beaker.session.key = pylons_app
28 34 beaker.session.secret = #@^^F&VWUDCT%@$#WR^@&*IWEKF
29 35 beaker.session.timeout = 3600
30 36
31 37 ##auto save the session to not to use .save()
32 38 beaker.session.auto = True
33 39
34 40 ##true exire at browser close
35 41 #beaker.session.cookie_expires = 3600
36 42
37 43 ## If you'd like to fine-tune the individual locations of the cache data dirs
38 44 ## for the Cache data, or the Session saves, un-comment the desired settings
39 45 ## here:
40 46 #beaker.cache.data_dir = %(here)s/data/cache
41 47 #beaker.session.data_dir = %(here)s/data/sessions
42 48
43 49
44 50 ##Type of storage used for the session, current types are
45 51 ##“dbm”, “file”, “memcached”, “database”, and “memory”.
46 52 ##The storage uses the Container API that is also used by the cache system.
47 53 beaker.session.type = memory
48 54
49 55 ##if db or memcached is used
50 56 ##you have to use
51 57 #beaker.session.url =
52 58 #beaker.session.table_name =
53 59
54 60 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
55 61 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to
56 62 ## execute malicious code after an exception is raised.
57 63 #set debug = false
58 64
59 65 ##dozer logging
60 #logview.sqlalchemy = #faa
61 #logview.pylons.templating = #bfb
62 #logview.sample_app.lib = #aaa
66 logview.pylons.templating = #bfb
67 logview.sample_app.lib = #aaa
63 68
64 69 # Logging configuration
65 70 [loggers]
66 keys = root, routes, pylons_app, sqlalchemy
71 keys = root, routes, pylons_app
67 72
68 73 [handlers]
69 74 keys = console,file_handler
70 75
71 76 [formatters]
72 77 keys = generic
73 78
74 79 ## LOGGERS ##
75 80 [logger_root]
76 81 level = DEBUG
77 82 handlers = console, file_handler
78 83
79 84 [logger_routes]
80 85 level = DEBUG
81 86 handlers = console
82 87 qualname = routes.middleware
83 88 # "level = DEBUG" logs the route matched and routing variables.
84 89
85 90 [logger_pylons_app]
86 91 level = DEBUG
87 92 handlers = console,file_handler
88 93 qualname = pylons_app
89 94
90 [logger_sqlalchemy]
91 level = DEBUG
92 handlers =
93 qualname = sqlalchemy.pool
94 propagate = 0
95
96
97 95 ## HANDLERS ##
98 96
99 97 [handler_console]
100 98 class = StreamHandler
101 99 args = (sys.stderr,)
102 100 level = NOTSET
103 101 formatter = generic
104 102
105 103 [handler_file_handler]
106 104 class = FileHandler
107 105 args = ('./pylons_app.log','a')
108 106 level = NOTSET
109 107 formatter = generic
110 108
111 109 ## FORMATTERS ##
112 110
113 111 [formatter_generic]
114 112 format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
115 113 datefmt = %H:%M:%S
116 114
@@ -1,116 +1,116 b''
1 1 ########################################################################
2 2 ##
3 3 ## pylons_app - Pylons development environment configuration
4 4 ##
5 5 ## The %(here)s variable will be replaced with the parent directory of this file
6 6 ##
7 [exe]
8 command = serve
9 daemon = false
10 user = nobody
11 group = nobody
12
7 13 [DEFAULT]
8 14 debug = true
9 15 ## Uncomment and replace with the address which should receive any error reports
10 16 email_to = marcin.kuzminski@etelko.pl
11 17 smtp_server = localhost
12 18 error_email_from = paste_error@localhost
13 19
14 20 [server:main]
15 21 use = egg:Paste#http
16 22 host = 127.0.0.1
17 23 port = 8001
18 24
19 25 [app:main]
20 26 use = egg:pylons_app
21 27 full_stack = true
22 28 static_files = false
23 29 ##default lang
24 30 lang=en
25 31
26 32 cache_dir = %(here)s/data
27 33 beaker.session.key = pylons_app
28 34 beaker.session.secret = #@^^F&VWUDCT%@$#WR^@&*IWEKF
29 35 beaker.session.timeout = 3600
30 36
31 37 ##auto save the session to not to use .save()
32 38 beaker.session.auto = True
33 39
34 40 ##true exire at browser close
35 41 #beaker.session.cookie_expires = 3600
36 42
37 43 ## If you'd like to fine-tune the individual locations of the cache data dirs
38 44 ## for the Cache data, or the Session saves, un-comment the desired settings
39 45 ## here:
40 46 #beaker.cache.data_dir = %(here)s/data/cache
41 47 #beaker.session.data_dir = %(here)s/data/sessions
42 48
43 49
44 50 ##Type of storage used for the session, current types are
45 51 ##“dbm”, “file”, “memcached”, “database”, and “memory”.
46 52 ##The storage uses the Container API that is also used by the cache system.
47 53 beaker.session.type = memory
48 54
49 55 ##if db or memcached is used
50 56 ##you have to use
51 57 #beaker.session.url =
52 58 #beaker.session.table_name =
53 59
54 60 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
55 61 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to
56 62 ## execute malicious code after an exception is raised.
57 #set debug = false
63 set debug = false
58 64
59 65 ##dozer logging
60 66 #logview.sqlalchemy = #faa
61 67 #logview.pylons.templating = #bfb
62 68 #logview.sample_app.lib = #aaa
63 69
64 70 # Logging configuration
65 71 [loggers]
66 keys = root, routes, pylons_app, sqlalchemy
72 keys = root, routes, pylons_app
67 73
68 74 [handlers]
69 75 keys = console,file_handler
70 76
71 77 [formatters]
72 78 keys = generic
73 79
74 80 ## LOGGERS ##
75 81 [logger_root]
76 82 level = DEBUG
77 83 handlers = file_handler
78 84
79 85 [logger_routes]
80 86 level = INFO
81 handlers = console
87 handlers = file_handler
82 88 qualname = routes.middleware
83 89 # "level = DEBUG" logs the route matched and routing variables.
84 90
85 91 [logger_pylons_app]
86 92 level = DEBUG
87 93 handlers = file_handler
88 94 qualname = pylons_app
89 95
90 [logger_sqlalchemy]
91 level = DEBUG
92 handlers =
93 qualname = sqlalchemy.pool
94 propagate = 0
95
96 96
97 97 ## HANDLERS ##
98 98
99 99 [handler_console]
100 100 class = StreamHandler
101 101 args = (sys.stderr,)
102 102 level = NOTSET
103 103 formatter = generic
104 104
105 105 [handler_file_handler]
106 106 class = FileHandler
107 107 args = ('./pylons_app.log','a')
108 108 level = NOTSET
109 109 formatter = generic
110 110
111 111 ## FORMATTERS ##
112 112
113 113 [formatter_generic]
114 114 format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
115 115 datefmt = %H:%M:%S
116 116
1 NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
1 NO CONTENT: modified file
The requested commit or file is too big and content was truncated. Show full diff
General Comments 0
You need to be logged in to leave comments. Login now