Explorar el Código

调整

develop
H Vs hace 3 meses
padre
commit
69a1ae19ee
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      app.py

+ 1
- 1
app.py Ver fichero

@@ -219,6 +219,6 @@ worker()
if __name__ == '__main__':
# 获取环境变量
environment = os.environ.get('environment', 'default')
port = 5000 if environment == 'default' else 80 # default 使用 5000,其他环境使用 80
port = 80 if environment == 'default' else 5000

app.run(debug=False, host='0.0.0.0', port=port)

Cargando…
Cancelar
Guardar