Ver código fonte

Merge pull request #3 from Manuel83/master

Update
pull/206/head
swimIan GitHub 8 anos atrás
pai
commit
74b56937e7
2 arquivos alterados com 8 adições e 2 exclusões
  1. +7
    -2
      run.py
  2. +1
    -0
      update/3_port_config.sql

+ 7
- 2
run.py Ver arquivo

@@ -1,6 +1,11 @@
#!/usr/bin/env python

from modules import socketio, app
from modules import socketio, app, cbpi

socketio.run(app, host='0.0.0.0')
try:
port = int(cbpi.get_config_parameter('port', '5000'))
except ValueError:
port = 5000

socketio.run(app, host='0.0.0.0', port=port)


+ 1
- 0
update/3_port_config.sql Ver arquivo

@@ -0,0 +1 @@
INSERT OR IGNORE INTO config VALUES ('port', 5000, 'number', 'Port to run server (requires restart)', NULL );

Carregando…
Cancelar
Salvar