server/serverconfig.py
branchstable
changeset 3638 648d6dbec630
parent 3637 0a0e86cb5c89
child 3674 387d51af966d
child 3835 a191b3b9e455
equal deleted inserted replaced
3637:0a0e86cb5c89 3638:648d6dbec630
    73 
    73 
    74 
    74 
    75 class ServerConfiguration(CubicWebConfiguration):
    75 class ServerConfiguration(CubicWebConfiguration):
    76     """standalone RQL server"""
    76     """standalone RQL server"""
    77     name = 'repository'
    77     name = 'repository'
    78     if os.environ.get('APYCOT_ROOT'):
       
    79         root = os.environ['APYCOT_ROOT']
       
    80     elif CubicWebConfiguration.mode == 'dev':
       
    81         BACKUP_DIR = CubicWebConfiguration.RUNTIME_DIR
       
    82     else:
       
    83         BACKUP_DIR = '/var/lib/cubicweb/backup/'
       
    84 
    78 
    85     cubicweb_appobject_path = CubicWebConfiguration.cubicweb_appobject_path | set(['sobjects'])
    79     cubicweb_appobject_path = CubicWebConfiguration.cubicweb_appobject_path | set(['sobjects'])
    86     cube_appobject_path = CubicWebConfiguration.cube_appobject_path | set(['sobjects', 'hooks'])
    80     cube_appobject_path = CubicWebConfiguration.cube_appobject_path | set(['sobjects', 'hooks'])
    87 
    81 
    88     options = merge_options((
    82     options = merge_options((