Fix in console.py
This commit is contained in:
parent
98d0ca3e76
commit
451999e57d
1 changed files with 13 additions and 4 deletions
|
|
@ -152,19 +152,28 @@ def start():
|
||||||
if args.host==None:
|
if args.host==None:
|
||||||
args.host='localhost'
|
args.host='localhost'
|
||||||
|
|
||||||
|
|
||||||
if args.port==None:
|
if args.port==None:
|
||||||
args.port=':8080'
|
args.port='8080'
|
||||||
|
port_deploy=':8080'
|
||||||
|
|
||||||
elif args.port=='80':
|
elif args.port=='80':
|
||||||
args.port=''
|
port_deploy=''
|
||||||
|
|
||||||
else:
|
else:
|
||||||
args.port=':'+args.port
|
port_deploy=':'+args.port
|
||||||
|
|
||||||
|
conf=conf.replace("port=8080", "base_url="+args.port)
|
||||||
|
|
||||||
|
base_url='/'
|
||||||
|
|
||||||
if args.folder==None:
|
if args.folder==None:
|
||||||
args.folder=''
|
args.folder=''
|
||||||
else:
|
else:
|
||||||
args.folder='/'+args.folder
|
args.folder='/'+args.folder
|
||||||
|
base_url='/'+args.folder+'/'
|
||||||
|
|
||||||
|
conf=conf.replace("base_url='/'", "base_url='"+base_url+"'")
|
||||||
|
|
||||||
arg_ssl='http'
|
arg_ssl='http'
|
||||||
|
|
||||||
|
|
@ -172,7 +181,7 @@ def start():
|
||||||
arg_ssl='https'
|
arg_ssl='https'
|
||||||
|
|
||||||
|
|
||||||
domain_url=arg_ssl+'://'+args.domain+args.port+args.folder
|
domain_url=arg_ssl+'://'+args.domain+port_deploy+args.folder
|
||||||
|
|
||||||
conf=conf.replace("domain_url='http://localhost:8080'", "domain_url='"+domain_url+"'")
|
conf=conf.replace("domain_url='http://localhost:8080'", "domain_url='"+domain_url+"'")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue