mirror of
https://github.com/openziti/zrok.git
synced 2025-06-19 08:17:05 +02:00
tidy py sdk examples
This commit is contained in:
parent
701f897678
commit
e16ae7f43e
5
.flake8
5
.flake8
@ -1,3 +1,6 @@
|
||||
[flake8]
|
||||
max-line-length = 120
|
||||
exclude = zrok_api, build
|
||||
exclude =
|
||||
./sdk/python/sdk/zrok/zrok_api/**,
|
||||
./build/**
|
||||
|
||||
|
@ -46,6 +46,6 @@ Next, we run the server which ends up calling the following:
|
||||
@zrok.decor.zrok(opts=zrok_opts)
|
||||
def runApp():
|
||||
from waitress import serve
|
||||
# the port is only used to integrate Zrok with frameworks that expect a "hostname:port" combo
|
||||
# the port is only used to integrate zrok with frameworks that expect a "hostname:port" combo
|
||||
serve(app, port=bindPort)
|
||||
```
|
||||
|
@ -13,7 +13,7 @@ bindPort = 18081
|
||||
@zrok.decor.zrok(opts=zrok_opts)
|
||||
def runApp():
|
||||
from waitress import serve
|
||||
# the port is only used to integrate Zrok with frameworks that expect a "hostname:port" combo
|
||||
# the port is only used to integrate zrok with frameworks that expect a "hostname:port" combo
|
||||
serve(app, port=bindPort)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user