add check to see if the 'socket' or 'port' options have been set in the
configuration file before trying to load it in initilaize.py
This commit is contained in:
parent
efabadf786
commit
200924b6d8
1 changed files with 5 additions and 3 deletions
|
|
@ -347,9 +347,11 @@ def get_config(branchname):
|
|||
|
||||
dataobject.server.addbranch('nginx')
|
||||
|
||||
if 'port' in config['nginx']:
|
||||
dataobject.server.nginx.port = config['nginx']['port']
|
||||
dataobject.server.nginx.socket = config['nginx']['socket']
|
||||
|
||||
if 'socket' in config['nginx']:
|
||||
dataobject.server.nginx.socket = config['nginx']['socket']
|
||||
print "DEBUG -- socket: %s" % dataobject.server.nginx.socket
|
||||
|
||||
if config['project']['host'] == "localhost":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue