Changeset - 99c093d1a142
[Not reviewed]
beta
0 3 0
Marcin Kuzminski - 13 years ago 2013-01-26 22:19:26
marcin@python-works.com
run waitress check on startup
3 files changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/config/environment.py
Show inline comments
 
@@ -20,6 +20,7 @@ from rhodecode.lib.auth import set_avail
 
from rhodecode.lib.utils import repo2db_mapper, make_ui, set_rhodecode_config,\
 
    load_rcextensions, check_git_version
 
from rhodecode.lib.utils2 import engine_from_config, str2bool
 
from rhodecode.lib.db_manage import DbManage
 
from rhodecode.model import init_model
 
from rhodecode.model.scm import ScmModel
 

	
 
@@ -88,7 +89,7 @@ def load_environment(global_conf, app_co
 

	
 
    #check git version
 
    check_git_version()
 

	
 
    DbManage.check_waitress()
 
    # MULTIPLE DB configs
 
    # Setup the SQLAlchemy database engine
 
    sa_engine_db1 = engine_from_config(config, 'sqlalchemy.db1.')
rhodecode/lib/db_manage.py
Show inline comments
 
@@ -704,7 +704,8 @@ class DbManage(object):
 
                reg_perm.permission = perm
 
                self.sa.add(reg_perm)
 

	
 
    def finish(self):
 
    @staticmethod
 
    def check_waitress():
 
        """
 
        Function executed at the end of setup
 
        """
rhodecode/websetup.py
Show inline comments
 
@@ -48,4 +48,4 @@ def setup_app(command, conf, vars):
 
    dbmanage.populate_default_permissions()
 
    Session().commit()
 
    load_environment(conf.global_conf, conf.local_conf, initial=True)
 
    dbmanage.finish()
 
    DbManage.check_waitress()
0 comments (0 inline, 0 general)