Explorar el Código

Merge pull request #3 from Manuel83/master

Update
pull/206/head
swimIan GitHub hace 8 años
padre
commit
74b56937e7
Se han modificado 2 ficheros con 8 adiciones y 2 borrados
  1. +7
    -2
      run.py
  2. +1
    -0
      update/3_port_config.sql

+ 7
- 2
run.py Ver fichero

@@ -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 fichero

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

Cargando…
Cancelar
Guardar