##// END OF EJS Templates
updated config files, and added celery dependency
marcink -
r472:91292686 celery
parent child Browse files
Show More
@@ -1,155 +1,160 b''
1 ################################################################################
1 ################################################################################
2 ################################################################################
2 ################################################################################
3 # pylons_app - Pylons environment configuration #
3 # hg-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 which should receive ##
12 ## which should receive any error reports ##
12 ## any error reports after application crash ##
13 ############################################
13 ## Additionally those settings will be used by hg-app mailing system ##
14 ################################################################################
14 #email_to = admin@localhost
15 #email_to = admin@localhost
16 #error_email_from = paste_error@localhost
17 #app_email_from = hg-app-noreply@localhost
18 #error_message =
19
15 #smtp_server = mail.server.com
20 #smtp_server = mail.server.com
16 #error_email_from = paste_error@localhost
17 #smtp_username =
21 #smtp_username =
18 #smtp_password =
22 #smtp_password =
19 #error_message = 'mercurial crash !'
23 #smtp_port =
24 #smtp_use_tls = false
20
25
21 [server:main]
26 [server:main]
22 ##nr of threads to spawn
27 ##nr of threads to spawn
23 threadpool_workers = 5
28 threadpool_workers = 5
24
29
25 ##max request before
30 ##max request before thread respawn
26 threadpool_max_requests = 2
31 threadpool_max_requests = 2
27
32
28 ##option to use threads of process
33 ##option to use threads of process
29 use_threadpool = true
34 use_threadpool = true
30
35
31 use = egg:Paste#http
36 use = egg:Paste#http
32 host = 127.0.0.1
37 host = 127.0.0.1
33 port = 8001
38 port = 8001
34
39
35 [app:main]
40 [app:main]
36 use = egg:pylons_app
41 use = egg:pylons_app
37 full_stack = true
42 full_stack = true
38 static_files = false
43 static_files = false
39 lang=en
44 lang=en
40 cache_dir = %(here)s/data
45 cache_dir = %(here)s/data
41
46
42 ####################################
47 ####################################
43 ### BEAKER CACHE ####
48 ### BEAKER CACHE ####
44 ####################################
49 ####################################
45 beaker.cache.data_dir=/%(here)s/data/cache/data
50 beaker.cache.data_dir=/%(here)s/data/cache/data
46 beaker.cache.lock_dir=/%(here)s/data/cache/lock
51 beaker.cache.lock_dir=/%(here)s/data/cache/lock
47 beaker.cache.regions=super_short_term,short_term,long_term
52 beaker.cache.regions=super_short_term,short_term,long_term
48 beaker.cache.long_term.type=memory
53 beaker.cache.long_term.type=memory
49 beaker.cache.long_term.expire=36000
54 beaker.cache.long_term.expire=36000
50 beaker.cache.short_term.type=memory
55 beaker.cache.short_term.type=memory
51 beaker.cache.short_term.expire=60
56 beaker.cache.short_term.expire=60
52 beaker.cache.super_short_term.type=memory
57 beaker.cache.super_short_term.type=memory
53 beaker.cache.super_short_term.expire=10
58 beaker.cache.super_short_term.expire=10
54
59
55 ####################################
60 ####################################
56 ### BEAKER SESSION ####
61 ### BEAKER SESSION ####
57 ####################################
62 ####################################
58 ## Type of storage used for the session, current types are
63 ## Type of storage used for the session, current types are
59 ## dbm, file, memcached, database, and memory.
64 ## dbm, file, memcached, database, and memory.
60 ## The storage uses the Container API
65 ## The storage uses the Container API
61 ##that is also used by the cache system.
66 ##that is also used by the cache system.
62 beaker.session.type = file
67 beaker.session.type = file
63
68
64 beaker.session.key = hg-app
69 beaker.session.key = hg-app
65 beaker.session.secret = g654dcno0-9873jhgfreyu
70 beaker.session.secret = g654dcno0-9873jhgfreyu
66 beaker.session.timeout = 36000
71 beaker.session.timeout = 36000
67
72
68 ##auto save the session to not to use .save()
73 ##auto save the session to not to use .save()
69 beaker.session.auto = False
74 beaker.session.auto = False
70
75
71 ##true exire at browser close
76 ##true exire at browser close
72 #beaker.session.cookie_expires = 3600
77 #beaker.session.cookie_expires = 3600
73
78
74
79
75 ################################################################################
80 ################################################################################
76 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
81 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
77 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
82 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
78 ## execute malicious code after an exception is raised. ##
83 ## execute malicious code after an exception is raised. ##
79 ################################################################################
84 ################################################################################
80 set debug = false
85 set debug = false
81
86
82 ##################################
87 ##################################
83 ### LOGVIEW CONFIG ###
88 ### LOGVIEW CONFIG ###
84 ##################################
89 ##################################
85 logview.sqlalchemy = #faa
90 logview.sqlalchemy = #faa
86 logview.pylons.templating = #bfb
91 logview.pylons.templating = #bfb
87 logview.pylons.util = #eee
92 logview.pylons.util = #eee
88
93
89 #########################################################
94 #########################################################
90 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
95 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
91 #########################################################
96 #########################################################
92 sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db
97 sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db
93 #sqlalchemy.db1.echo = False
98 #sqlalchemy.db1.echo = False
94 #sqlalchemy.db1.pool_recycle = 3600
99 #sqlalchemy.db1.pool_recycle = 3600
95 sqlalchemy.convert_unicode = true
100 sqlalchemy.convert_unicode = true
96
101
97 ################################
102 ################################
98 ### LOGGING CONFIGURATION ####
103 ### LOGGING CONFIGURATION ####
99 ################################
104 ################################
100 [loggers]
105 [loggers]
101 keys = root, routes, pylons_app, sqlalchemy
106 keys = root, routes, pylons_app, sqlalchemy
102
107
103 [handlers]
108 [handlers]
104 keys = console
109 keys = console
105
110
106 [formatters]
111 [formatters]
107 keys = generic,color_formatter
112 keys = generic,color_formatter
108
113
109 #############
114 #############
110 ## LOGGERS ##
115 ## LOGGERS ##
111 #############
116 #############
112 [logger_root]
117 [logger_root]
113 level = INFO
118 level = INFO
114 handlers = console
119 handlers = console
115
120
116 [logger_routes]
121 [logger_routes]
117 level = INFO
122 level = INFO
118 handlers = console
123 handlers = console
119 qualname = routes.middleware
124 qualname = routes.middleware
120 # "level = DEBUG" logs the route matched and routing variables.
125 # "level = DEBUG" logs the route matched and routing variables.
121
126
122 [logger_pylons_app]
127 [logger_pylons_app]
123 level = DEBUG
128 level = DEBUG
124 handlers = console
129 handlers = console
125 qualname = pylons_app
130 qualname = pylons_app
126 propagate = 0
131 propagate = 0
127
132
128 [logger_sqlalchemy]
133 [logger_sqlalchemy]
129 level = ERROR
134 level = ERROR
130 handlers = console
135 handlers = console
131 qualname = sqlalchemy.engine
136 qualname = sqlalchemy.engine
132 propagate = 0
137 propagate = 0
133
138
134 ##############
139 ##############
135 ## HANDLERS ##
140 ## HANDLERS ##
136 ##############
141 ##############
137
142
138 [handler_console]
143 [handler_console]
139 class = StreamHandler
144 class = StreamHandler
140 args = (sys.stderr,)
145 args = (sys.stderr,)
141 level = NOTSET
146 level = NOTSET
142 formatter = color_formatter
147 formatter = color_formatter
143
148
144 ################
149 ################
145 ## FORMATTERS ##
150 ## FORMATTERS ##
146 ################
151 ################
147
152
148 [formatter_generic]
153 [formatter_generic]
149 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
154 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
150 datefmt = %Y-%m-%d %H:%M:%S
155 datefmt = %Y-%m-%d %H:%M:%S
151
156
152 [formatter_color_formatter]
157 [formatter_color_formatter]
153 class=pylons_app.lib.colored_formatter.ColorFormatter
158 class=pylons_app.lib.colored_formatter.ColorFormatter
154 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
159 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
155 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
160 datefmt = %Y-%m-%d %H:%M:%S
@@ -1,156 +1,161 b''
1 ################################################################################
1 ################################################################################
2 ################################################################################
2 ################################################################################
3 # hg-app - Pylons environment configuration #
3 # hg-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 which should receive ##
12 ## which should receive any error reports ##
12 ## any error reports after application crash ##
13 ############################################
13 ## Additionally those settings will be used by hg-app mailing system ##
14 ################################################################################
14 #email_to = admin@localhost
15 #email_to = admin@localhost
16 #error_email_from = paste_error@localhost
17 #app_email_from = hg-app-noreply@localhost
18 #error_message =
19
15 #smtp_server = mail.server.com
20 #smtp_server = mail.server.com
16 #error_email_from = paste_error@localhost
17 #smtp_username =
21 #smtp_username =
18 #smtp_password =
22 #smtp_password =
19 #error_message = 'hp-app crash !'
23 #smtp_port =
24 #smtp_use_tls = false
20
25
21 [server:main]
26 [server:main]
22 ##nr of threads to spawn
27 ##nr of threads to spawn
23 threadpool_workers = 5
28 threadpool_workers = 5
24
29
25 ##max request before thread respawn
30 ##max request before thread respawn
26 threadpool_max_requests = 2
31 threadpool_max_requests = 2
27
32
28 ##option to use threads of process
33 ##option to use threads of process
29 use_threadpool = true
34 use_threadpool = true
30
35
31 use = egg:Paste#http
36 use = egg:Paste#http
32 host = 127.0.0.1
37 host = 127.0.0.1
33 port = 8001
38 port = 8001
34
39
35 [app:main]
40 [app:main]
36 use = egg:pylons_app
41 use = egg:pylons_app
37 full_stack = true
42 full_stack = true
38 static_files = false
43 static_files = false
39 lang=en
44 lang=en
40 cache_dir = %(here)s/data
45 cache_dir = %(here)s/data
41 app_instance_uuid = ${app_instance_uuid}
46 app_instance_uuid = ${app_instance_uuid}
42
47
43 ####################################
48 ####################################
44 ### BEAKER CACHE ####
49 ### BEAKER CACHE ####
45 ####################################
50 ####################################
46 beaker.cache.data_dir=/%(here)s/data/cache/data
51 beaker.cache.data_dir=/%(here)s/data/cache/data
47 beaker.cache.lock_dir=/%(here)s/data/cache/lock
52 beaker.cache.lock_dir=/%(here)s/data/cache/lock
48 beaker.cache.regions=super_short_term,short_term,long_term
53 beaker.cache.regions=super_short_term,short_term,long_term
49 beaker.cache.long_term.type=memory
54 beaker.cache.long_term.type=memory
50 beaker.cache.long_term.expire=36000
55 beaker.cache.long_term.expire=36000
51 beaker.cache.short_term.type=memory
56 beaker.cache.short_term.type=memory
52 beaker.cache.short_term.expire=60
57 beaker.cache.short_term.expire=60
53 beaker.cache.super_short_term.type=memory
58 beaker.cache.super_short_term.type=memory
54 beaker.cache.super_short_term.expire=10
59 beaker.cache.super_short_term.expire=10
55
60
56 ####################################
61 ####################################
57 ### BEAKER SESSION ####
62 ### BEAKER SESSION ####
58 ####################################
63 ####################################
59 ## Type of storage used for the session, current types are
64 ## Type of storage used for the session, current types are
60 ## dbm, file, memcached, database, and memory.
65 ## dbm, file, memcached, database, and memory.
61 ## The storage uses the Container API
66 ## The storage uses the Container API
62 ##that is also used by the cache system.
67 ##that is also used by the cache system.
63 beaker.session.type = file
68 beaker.session.type = file
64
69
65 beaker.session.key = hg-app
70 beaker.session.key = hg-app
66 beaker.session.secret = ${app_instance_secret}
71 beaker.session.secret = ${app_instance_secret}
67 beaker.session.timeout = 36000
72 beaker.session.timeout = 36000
68
73
69 ##auto save the session to not to use .save()
74 ##auto save the session to not to use .save()
70 beaker.session.auto = False
75 beaker.session.auto = False
71
76
72 ##true exire at browser close
77 ##true exire at browser close
73 #beaker.session.cookie_expires = 3600
78 #beaker.session.cookie_expires = 3600
74
79
75
80
76 ################################################################################
81 ################################################################################
77 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
82 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
78 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
83 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
79 ## execute malicious code after an exception is raised. ##
84 ## execute malicious code after an exception is raised. ##
80 ################################################################################
85 ################################################################################
81 set debug = false
86 set debug = false
82
87
83 ##################################
88 ##################################
84 ### LOGVIEW CONFIG ###
89 ### LOGVIEW CONFIG ###
85 ##################################
90 ##################################
86 logview.sqlalchemy = #faa
91 logview.sqlalchemy = #faa
87 logview.pylons.templating = #bfb
92 logview.pylons.templating = #bfb
88 logview.pylons.util = #eee
93 logview.pylons.util = #eee
89
94
90 #########################################################
95 #########################################################
91 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
96 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
92 #########################################################
97 #########################################################
93 sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db
98 sqlalchemy.db1.url = sqlite:///%(here)s/hg_app.db
94 #sqlalchemy.db1.echo = False
99 #sqlalchemy.db1.echo = False
95 #sqlalchemy.db1.pool_recycle = 3600
100 #sqlalchemy.db1.pool_recycle = 3600
96 sqlalchemy.convert_unicode = true
101 sqlalchemy.convert_unicode = true
97
102
98 ################################
103 ################################
99 ### LOGGING CONFIGURATION ####
104 ### LOGGING CONFIGURATION ####
100 ################################
105 ################################
101 [loggers]
106 [loggers]
102 keys = root, routes, pylons_app, sqlalchemy
107 keys = root, routes, pylons_app, sqlalchemy
103
108
104 [handlers]
109 [handlers]
105 keys = console
110 keys = console
106
111
107 [formatters]
112 [formatters]
108 keys = generic,color_formatter
113 keys = generic,color_formatter
109
114
110 #############
115 #############
111 ## LOGGERS ##
116 ## LOGGERS ##
112 #############
117 #############
113 [logger_root]
118 [logger_root]
114 level = INFO
119 level = INFO
115 handlers = console
120 handlers = console
116
121
117 [logger_routes]
122 [logger_routes]
118 level = INFO
123 level = INFO
119 handlers = console
124 handlers = console
120 qualname = routes.middleware
125 qualname = routes.middleware
121 # "level = DEBUG" logs the route matched and routing variables.
126 # "level = DEBUG" logs the route matched and routing variables.
122
127
123 [logger_pylons_app]
128 [logger_pylons_app]
124 level = DEBUG
129 level = DEBUG
125 handlers = console
130 handlers = console
126 qualname = pylons_app
131 qualname = pylons_app
127 propagate = 0
132 propagate = 0
128
133
129 [logger_sqlalchemy]
134 [logger_sqlalchemy]
130 level = ERROR
135 level = ERROR
131 handlers = console
136 handlers = console
132 qualname = sqlalchemy.engine
137 qualname = sqlalchemy.engine
133 propagate = 0
138 propagate = 0
134
139
135 ##############
140 ##############
136 ## HANDLERS ##
141 ## HANDLERS ##
137 ##############
142 ##############
138
143
139 [handler_console]
144 [handler_console]
140 class = StreamHandler
145 class = StreamHandler
141 args = (sys.stderr,)
146 args = (sys.stderr,)
142 level = NOTSET
147 level = NOTSET
143 formatter = color_formatter
148 formatter = color_formatter
144
149
145 ################
150 ################
146 ## FORMATTERS ##
151 ## FORMATTERS ##
147 ################
152 ################
148
153
149 [formatter_generic]
154 [formatter_generic]
150 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
155 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
151 datefmt = %Y-%m-%d %H:%M:%S
156 datefmt = %Y-%m-%d %H:%M:%S
152
157
153 [formatter_color_formatter]
158 [formatter_color_formatter]
154 class=pylons_app.lib.colored_formatter.ColorFormatter
159 class=pylons_app.lib.colored_formatter.ColorFormatter
155 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
160 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
156 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
161 datefmt = %Y-%m-%d %H:%M:%S
@@ -1,48 +1,49 b''
1 from pylons_app import get_version
1 from pylons_app import get_version
2 try:
2 try:
3 from setuptools import setup, find_packages
3 from setuptools import setup, find_packages
4 except ImportError:
4 except ImportError:
5 from ez_setup import use_setuptools
5 from ez_setup import use_setuptools
6 use_setuptools()
6 use_setuptools()
7 from setuptools import setup, find_packages
7 from setuptools import setup, find_packages
8
8
9 setup(
9 setup(
10 name='HgApp-%s'%get_version(),
10 name='HgApp-%s'%get_version(),
11 version=get_version(),
11 version=get_version(),
12 description='Mercurial repository serving and browsing app',
12 description='Mercurial repository serving and browsing app',
13 keywords='mercurial web hgwebdir replacement serving hgweb',
13 keywords='mercurial web hgwebdir replacement serving hgweb',
14 license='BSD',
14 license='BSD',
15 author='marcin kuzminski',
15 author='marcin kuzminski',
16 author_email='marcin@python-works.com',
16 author_email='marcin@python-works.com',
17 url='http://hg.python-works.com',
17 url='http://hg.python-works.com',
18 install_requires=[
18 install_requires=[
19 "Pylons>=1.0.0",
19 "Pylons>=1.0.0",
20 "SQLAlchemy>=0.6",
20 "SQLAlchemy>=0.6",
21 "babel",
21 "babel",
22 "Mako>=0.3.2",
22 "Mako>=0.3.2",
23 "vcs>=0.1.4",
23 "vcs>=0.1.4",
24 "pygments>=1.3.0",
24 "pygments>=1.3.0",
25 "mercurial>=1.6",
25 "mercurial>=1.6",
26 "pysqlite",
26 "pysqlite",
27 "whoosh==1.0.0b10",
27 "whoosh==1.0.0b10",
28 "py-bcrypt",
28 "py-bcrypt",
29 "celery",
29 ],
30 ],
30 setup_requires=["PasteScript>=1.6.3"],
31 setup_requires=["PasteScript>=1.6.3"],
31 packages=find_packages(exclude=['ez_setup']),
32 packages=find_packages(exclude=['ez_setup']),
32 include_package_data=True,
33 include_package_data=True,
33 test_suite='nose.collector',
34 test_suite='nose.collector',
34 package_data={'pylons_app': ['i18n/*/LC_MESSAGES/*.mo']},
35 package_data={'pylons_app': ['i18n/*/LC_MESSAGES/*.mo']},
35 message_extractors={'pylons_app': [
36 message_extractors={'pylons_app': [
36 ('**.py', 'python', None),
37 ('**.py', 'python', None),
37 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
38 ('templates/**.mako', 'mako', {'input_encoding': 'utf-8'}),
38 ('public/**', 'ignore', None)]},
39 ('public/**', 'ignore', None)]},
39 zip_safe=False,
40 zip_safe=False,
40 paster_plugins=['PasteScript', 'Pylons'],
41 paster_plugins=['PasteScript', 'Pylons'],
41 entry_points="""
42 entry_points="""
42 [paste.app_factory]
43 [paste.app_factory]
43 main = pylons_app.config.middleware:make_app
44 main = pylons_app.config.middleware:make_app
44
45
45 [paste.app_install]
46 [paste.app_install]
46 main = pylons.util:PylonsInstaller
47 main = pylons.util:PylonsInstaller
47 """,
48 """,
48 )
49 )
@@ -1,155 +1,160 b''
1 ################################################################################
1 ################################################################################
2 ################################################################################
2 ################################################################################
3 # pylons_app - Pylons environment configuration #
3 # hg-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 which should receive ##
12 ## which should receive any error reports ##
12 ## any error reports after application crash ##
13 ############################################
13 ## Additionally those settings will be used by hg-app mailing system ##
14 ################################################################################
14 #email_to = admin@localhost
15 #email_to = admin@localhost
16 #error_email_from = paste_error@localhost
17 #app_email_from = hg-app-noreply@localhost
18 #error_message =
19
15 #smtp_server = mail.server.com
20 #smtp_server = mail.server.com
16 #error_email_from = paste_error@localhost
17 #smtp_username =
21 #smtp_username =
18 #smtp_password =
22 #smtp_password =
19 #error_message = 'mercurial crash !'
23 #smtp_port =
24 #smtp_use_tls = false
20
25
21 [server:main]
26 [server:main]
22 ##nr of threads to spawn
27 ##nr of threads to spawn
23 threadpool_workers = 5
28 threadpool_workers = 5
24
29
25 ##max request before
30 ##max request before thread respawn
26 threadpool_max_requests = 2
31 threadpool_max_requests = 2
27
32
28 ##option to use threads of process
33 ##option to use threads of process
29 use_threadpool = true
34 use_threadpool = true
30
35
31 use = egg:Paste#http
36 use = egg:Paste#http
32 host = 127.0.0.1
37 host = 127.0.0.1
33 port = 5000
38 port = 5000
34
39
35 [app:main]
40 [app:main]
36 use = egg:pylons_app
41 use = egg:pylons_app
37 full_stack = true
42 full_stack = true
38 static_files = true
43 static_files = true
39 lang=en
44 lang=en
40 cache_dir = %(here)s/data
45 cache_dir = %(here)s/data
41
46
42 ####################################
47 ####################################
43 ### BEAKER CACHE ####
48 ### BEAKER CACHE ####
44 ####################################
49 ####################################
45 beaker.cache.data_dir=/%(here)s/data/cache/data
50 beaker.cache.data_dir=/%(here)s/data/cache/data
46 beaker.cache.lock_dir=/%(here)s/data/cache/lock
51 beaker.cache.lock_dir=/%(here)s/data/cache/lock
47 beaker.cache.regions=super_short_term,short_term,long_term
52 beaker.cache.regions=super_short_term,short_term,long_term
48 beaker.cache.long_term.type=memory
53 beaker.cache.long_term.type=memory
49 beaker.cache.long_term.expire=36000
54 beaker.cache.long_term.expire=36000
50 beaker.cache.short_term.type=memory
55 beaker.cache.short_term.type=memory
51 beaker.cache.short_term.expire=60
56 beaker.cache.short_term.expire=60
52 beaker.cache.super_short_term.type=memory
57 beaker.cache.super_short_term.type=memory
53 beaker.cache.super_short_term.expire=10
58 beaker.cache.super_short_term.expire=10
54
59
55 ####################################
60 ####################################
56 ### BEAKER SESSION ####
61 ### BEAKER SESSION ####
57 ####################################
62 ####################################
58 ## Type of storage used for the session, current types are
63 ## Type of storage used for the session, current types are
59 ## β€œdbm”, β€œfile”, β€œmemcached”, β€œdatabase”, and β€œmemory”.
64 ## "dbm", "file", "memcached", "database", and "memory".
60 ## The storage uses the Container API
65 ## The storage uses the Container API
61 ##that is also used by the cache system.
66 ##that is also used by the cache system.
62 beaker.session.type = file
67 beaker.session.type = file
63
68
64 beaker.session.key = hg-app
69 beaker.session.key = hg-app
65 beaker.session.secret = g654dcno0-9873jhgfreyu
70 beaker.session.secret = g654dcno0-9873jhgfreyu
66 beaker.session.timeout = 36000
71 beaker.session.timeout = 36000
67
72
68 ##auto save the session to not to use .save()
73 ##auto save the session to not to use .save()
69 beaker.session.auto = False
74 beaker.session.auto = False
70
75
71 ##true exire at browser close
76 ##true exire at browser close
72 #beaker.session.cookie_expires = 3600
77 #beaker.session.cookie_expires = 3600
73
78
74
79
75 ################################################################################
80 ################################################################################
76 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
81 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
77 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
82 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
78 ## execute malicious code after an exception is raised. ##
83 ## execute malicious code after an exception is raised. ##
79 ################################################################################
84 ################################################################################
80 #set debug = false
85 #set debug = false
81
86
82 ##################################
87 ##################################
83 ### LOGVIEW CONFIG ###
88 ### LOGVIEW CONFIG ###
84 ##################################
89 ##################################
85 logview.sqlalchemy = #faa
90 logview.sqlalchemy = #faa
86 logview.pylons.templating = #bfb
91 logview.pylons.templating = #bfb
87 logview.pylons.util = #eee
92 logview.pylons.util = #eee
88
93
89 #########################################################
94 #########################################################
90 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
95 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
91 #########################################################
96 #########################################################
92 sqlalchemy.db1.url = sqlite:///%(here)s/test.db
97 sqlalchemy.db1.url = sqlite:///%(here)s/test.db
93 #sqlalchemy.db1.echo = False
98 #sqlalchemy.db1.echo = False
94 #sqlalchemy.db1.pool_recycle = 3600
99 #sqlalchemy.db1.pool_recycle = 3600
95 sqlalchemy.convert_unicode = true
100 sqlalchemy.convert_unicode = true
96
101
97 ################################
102 ################################
98 ### LOGGING CONFIGURATION ####
103 ### LOGGING CONFIGURATION ####
99 ################################
104 ################################
100 [loggers]
105 [loggers]
101 keys = root, routes, pylons_app, sqlalchemy
106 keys = root, routes, pylons_app, sqlalchemy
102
107
103 [handlers]
108 [handlers]
104 keys = console
109 keys = console
105
110
106 [formatters]
111 [formatters]
107 keys = generic,color_formatter
112 keys = generic,color_formatter
108
113
109 #############
114 #############
110 ## LOGGERS ##
115 ## LOGGERS ##
111 #############
116 #############
112 [logger_root]
117 [logger_root]
113 level = ERROR
118 level = ERROR
114 handlers = console
119 handlers = console
115
120
116 [logger_routes]
121 [logger_routes]
117 level = ERROR
122 level = ERROR
118 handlers = console
123 handlers = console
119 qualname = routes.middleware
124 qualname = routes.middleware
120 # "level = DEBUG" logs the route matched and routing variables.
125 # "level = DEBUG" logs the route matched and routing variables.
121
126
122 [logger_pylons_app]
127 [logger_pylons_app]
123 level = ERROR
128 level = ERROR
124 handlers = console
129 handlers = console
125 qualname = pylons_app
130 qualname = pylons_app
126 propagate = 0
131 propagate = 0
127
132
128 [logger_sqlalchemy]
133 [logger_sqlalchemy]
129 level = ERROR
134 level = ERROR
130 handlers = console
135 handlers = console
131 qualname = sqlalchemy.engine
136 qualname = sqlalchemy.engine
132 propagate = 0
137 propagate = 0
133
138
134 ##############
139 ##############
135 ## HANDLERS ##
140 ## HANDLERS ##
136 ##############
141 ##############
137
142
138 [handler_console]
143 [handler_console]
139 class = StreamHandler
144 class = StreamHandler
140 args = (sys.stderr,)
145 args = (sys.stderr,)
141 level = NOTSET
146 level = NOTSET
142 formatter = color_formatter
147 formatter = color_formatter
143
148
144 ################
149 ################
145 ## FORMATTERS ##
150 ## FORMATTERS ##
146 ################
151 ################
147
152
148 [formatter_generic]
153 [formatter_generic]
149 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
154 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
150 datefmt = %Y-%m-%d %H:%M:%S
155 datefmt = %Y-%m-%d %H:%M:%S
151
156
152 [formatter_color_formatter]
157 [formatter_color_formatter]
153 class=pylons_app.lib.colored_formatter.ColorFormatter
158 class=pylons_app.lib.colored_formatter.ColorFormatter
154 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
159 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
155 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
160 datefmt = %Y-%m-%d %H:%M:%S
General Comments 0
You need to be logged in to leave comments. Login now