Files
@ f6c613fba757
Branch filter:
Location: kallithea/rhodecode/websetup.py - annotation
f6c613fba757
764 B
text/x-python
Celery is configured by the .ini files and run from paster now
removed celeryconfig, added homebrew celery-pylons,
added paster celeryd command, fixed tasks to use pylons configs, sqlalchemy sessions
removed celeryconfig, added homebrew celery-pylons,
added paster celeryd command, fixed tasks to use pylons configs, sqlalchemy sessions
1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 2642f128ad46 2642f128ad46 1e757ac98988 2642f128ad46 1e757ac98988 1e757ac98988 1e757ac98988 1e757ac98988 03676d39dd0a 03676d39dd0a 1e757ac98988 2642f128ad46 2642f128ad46 2642f128ad46 2642f128ad46 | """Setup the rhodecode application"""
from rhodecode.config.environment import load_environment
from rhodecode.lib.db_manage import DbManage
import logging
import os
log = logging.getLogger(__name__)
def setup_app(command, conf, vars):
"""Place any commands to setup rhodecode here"""
dbname = os.path.split(conf['sqlalchemy.db1.url'])[-1]
dbmanage = DbManage(log_sql=True, dbname=dbname, root=conf['here'],
tests=False)
dbmanage.create_tables(override=True)
dbmanage.config_prompt(None)
dbmanage.create_default_user()
dbmanage.admin_prompt()
dbmanage.create_permissions()
dbmanage.populate_default_permissions()
load_environment(conf.global_conf, conf.local_conf, initial=True)
|