Skip to content

Commit 4fabf2c

Browse files
committed
Break APIs into its own modules
1 parent db53a4a commit 4fabf2c

File tree

8 files changed

+481
-478
lines changed

8 files changed

+481
-478
lines changed

lib/pbench/cli/server/shell.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
#!/bin/env python3
22

3-
from pbench.server.api import App
3+
from pbench.server.api import create_app
44
import subprocess
55

66

77
def main():
8-
flask_app = App()
9-
app = flask_app.create_app()
8+
app = create_app()
109
port = app.config["PORT"]
1110
host = app.config["BIND_HOST"]
1211
workers = app.config["WORKERS"]
@@ -19,6 +18,6 @@ def main():
1918
"/run/pbench-server/gunicorn.pid",
2019
"--bind",
2120
f"{str(host)}:{str(port)}",
22-
"pbench.server.api:App.create_app()",
21+
"pbench.server.api:create_app()",
2322
]
2423
)

0 commit comments

Comments
 (0)