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,10 +347,12 @@ def get_config(branchname):
|
||||||
|
|
||||||
dataobject.server.addbranch('nginx')
|
dataobject.server.addbranch('nginx')
|
||||||
|
|
||||||
dataobject.server.nginx.port = config['nginx']['port']
|
if 'port' in config['nginx']:
|
||||||
dataobject.server.nginx.socket = config['nginx']['socket']
|
dataobject.server.nginx.port = config['nginx']['port']
|
||||||
|
|
||||||
print "DEBUG -- socket: %s" % dataobject.server.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":
|
if config['project']['host'] == "localhost":
|
||||||
dataobject.server.nginx.host = "{projectname}.{ext}".format(
|
dataobject.server.nginx.host = "{projectname}.{ext}".format(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue