run read only backend if enableReadOnlyService is set
This commit is contained in:
parent
60e17ab076
commit
d8cd9ecd4f
1 changed files with 6 additions and 7 deletions
|
@ -146,13 +146,12 @@ def run():
|
|||
http_server.listen(settings.server['port'], settings.server['address'], max_buffer_size=max_buffer_size)
|
||||
|
||||
# public server
|
||||
'''
|
||||
if settings.preferences.get('enableReadOnlyService'):
|
||||
public_port = settings.server.get('public_port')
|
||||
public_address = settings.server['public_address']
|
||||
if public_port:
|
||||
public_server = Application(public_handlers, **options)
|
||||
public_server.listen(public_port, public_address)
|
||||
'''
|
||||
|
||||
if PID:
|
||||
with open(PID, 'w') as pid:
|
||||
|
|
Loading…
Reference in a new issue