##// END OF EJS Templates
config: automatically assign instance_id for host and process if it has been set to *...
Mads Kiilerich -
r3650:76ae40e5 beta
parent child Browse files
Show More
@@ -101,6 +101,12 b' def load_environment(global_conf, app_co'
101 101 set_available_permissions(config)
102 102 config['base_path'] = repos_path
103 103 set_rhodecode_config(config)
104
105 instance_id = rhodecode.CONFIG.get('instance_id')
106 if instance_id == '*':
107 instance_id = '%s-%s' % (os.uname()[1], os.getpid())
108 rhodecode.CONFIG['instance_id'] = instance_id
109
104 110 # CONFIGURATION OPTIONS HERE (note: all config options will override
105 111 # any Pylons config options)
106 112
General Comments 0
You need to be logged in to leave comments. Login now