##// END OF EJS Templates
Switch to waitress wsgi server by default in rhodecode....
marcink -
r2597:7b092b91 beta
parent child Browse files
Show More
@@ -30,15 +30,16 b' pdebug = false'
30
30
31 [server:main]
31 [server:main]
32 ##nr of threads to spawn
32 ##nr of threads to spawn
33 threadpool_workers = 5
33 #threadpool_workers = 5
34
34
35 ##max request before thread respawn
35 ##max request before thread respawn
36 threadpool_max_requests = 10
36 #threadpool_max_requests = 10
37
37
38 ##option to use threads of process
38 ##option to use threads of process
39 use_threadpool = true
39 #use_threadpool = true
40
40
41 use = egg:Paste#http
41 #use = egg:Paste#http
42 use = egg:waitress#main
42 host = 0.0.0.0
43 host = 0.0.0.0
43 port = 5000
44 port = 5000
44
45
@@ -47,7 +48,7 b' use = egg:rhodecode'
47 full_stack = true
48 full_stack = true
48 static_files = true
49 static_files = true
49 # Optional Languages
50 # Optional Languages
50 # en, fr, pt_BR, zh_CN, zh_TW
51 # en, fr, ja, pt_BR, zh_CN, zh_TW
51 lang = en
52 lang = en
52 cache_dir = %(here)s/data
53 cache_dir = %(here)s/data
53 index_dir = %(here)s/data/index
54 index_dir = %(here)s/data/index
@@ -30,15 +30,16 b' pdebug = false'
30
30
31 [server:main]
31 [server:main]
32 ##nr of threads to spawn
32 ##nr of threads to spawn
33 threadpool_workers = 5
33 #threadpool_workers = 5
34
34
35 ##max request before thread respawn
35 ##max request before thread respawn
36 threadpool_max_requests = 10
36 #threadpool_max_requests = 10
37
37
38 ##option to use threads of process
38 ##option to use threads of process
39 use_threadpool = true
39 #use_threadpool = true
40
40
41 use = egg:Paste#http
41 #use = egg:Paste#http
42 use = egg:waitress#main
42 host = 127.0.0.1
43 host = 127.0.0.1
43 port = 8001
44 port = 8001
44
45
@@ -47,7 +48,7 b' use = egg:rhodecode'
47 full_stack = true
48 full_stack = true
48 static_files = true
49 static_files = true
49 # Optional Languages
50 # Optional Languages
50 # en, fr, pt_BR, zh_CN, zh_TW
51 # en, fr, ja, pt_BR, zh_CN, zh_TW
51 lang = en
52 lang = en
52 cache_dir = %(here)s/data
53 cache_dir = %(here)s/data
53 index_dir = %(here)s/data/index
54 index_dir = %(here)s/data/index
@@ -30,15 +30,16 b' pdebug = false'
30
30
31 [server:main]
31 [server:main]
32 ##nr of threads to spawn
32 ##nr of threads to spawn
33 threadpool_workers = 5
33 #threadpool_workers = 5
34
34
35 ##max request before thread respawn
35 ##max request before thread respawn
36 threadpool_max_requests = 10
36 #threadpool_max_requests = 10
37
37
38 ##option to use threads of process
38 ##option to use threads of process
39 use_threadpool = true
39 #use_threadpool = true
40
40
41 use = egg:Paste#http
41 #use = egg:Paste#http
42 use = egg:waitress#main
42 host = 127.0.0.1
43 host = 127.0.0.1
43 port = 5000
44 port = 5000
44
45
@@ -25,19 +25,17 b''
25
25
26 import logging
26 import logging
27 import binascii
27 import binascii
28
28 from pylons.i18n.translation import _
29 from pylons.i18n.translation import _
29
30
31 from rhodecode.model.meta import Session
30 from rhodecode.lib import helpers as h
32 from rhodecode.lib import helpers as h
31 from rhodecode.model import BaseModel
33 from rhodecode.model import BaseModel
32 from rhodecode.model.db import PullRequest, PullRequestReviewers, Notification,\
34 from rhodecode.model.db import PullRequest, PullRequestReviewers, Notification
33 ChangesetStatus
34 from rhodecode.model.notification import NotificationModel
35 from rhodecode.model.notification import NotificationModel
35 from rhodecode.lib.utils2 import safe_unicode
36 from rhodecode.lib.utils2 import safe_unicode
36
37
37 from rhodecode.lib.vcs.utils.hgcompat import discovery
38 from rhodecode.lib.vcs.utils.hgcompat import discovery
38 from rhodecode.model.changeset_status import ChangesetStatusModel
39 from rhodecode.model.comment import ChangesetCommentsModel
40 from rhodecode.model.meta import Session
41
39
42 log = logging.getLogger(__name__)
40 log = logging.getLogger(__name__)
43
41
@@ -33,6 +33,7 b" callback = lambda V: ('.'.join(map(str, "
33 is_windows = __platform__ in _get_meta_var('PLATFORM_WIN', _metadata)
33 is_windows = __platform__ in _get_meta_var('PLATFORM_WIN', _metadata)
34
34
35 requirements = [
35 requirements = [
36 "waitress==0.8.1",
36 "Pylons==1.0.0",
37 "Pylons==1.0.0",
37 "Beaker==1.6.3",
38 "Beaker==1.6.3",
38 "WebHelpers==1.3",
39 "WebHelpers==1.3",
@@ -49,7 +50,7 b' requirements = ['
49 "markdown==2.1.1",
50 "markdown==2.1.1",
50 "docutils==0.8.1",
51 "docutils==0.8.1",
51 "simplejson==2.5.2",
52 "simplejson==2.5.2",
52 "mock"
53 "mock",
53 ]
54 ]
54
55
55 if sys.version_info < (2, 6):
56 if sys.version_info < (2, 6):
@@ -30,15 +30,16 b' pdebug = false'
30
30
31 [server:main]
31 [server:main]
32 ##nr of threads to spawn
32 ##nr of threads to spawn
33 threadpool_workers = 5
33 #threadpool_workers = 5
34
34
35 ##max request before thread respawn
35 ##max request before thread respawn
36 threadpool_max_requests = 2
36 #threadpool_max_requests = 2
37
37
38 ##option to use threads of process
38 ##option to use threads of process
39 use_threadpool = true
39 #use_threadpool = true
40
40
41 use = egg:Paste#http
41 #use = egg:Paste#http
42 use = egg:waitress#main
42 host = 127.0.0.1
43 host = 127.0.0.1
43 port = 5000
44 port = 5000
44
45
General Comments 0
You need to be logged in to leave comments. Login now