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