diff --git a/doc/source/dev/debugging_galaxy.md b/doc/source/dev/debugging_galaxy.md index 51c5c34e56a..bca979a49bb 100644 --- a/doc/source/dev/debugging_galaxy.md +++ b/doc/source/dev/debugging_galaxy.md @@ -18,17 +18,15 @@ The following instructions assume that you have cloned your Galaxy fork into the "console": "integratedTerminal" }, { - "name": "Galaxy debug", + "name": "GalaxyFastAPI uvicorn", "type": "python", "request": "launch", - "program": "${workspaceFolder}/scripts/paster.py", - "args": [ - "serve", - "config/galaxy_vscode.ini", - "--log-file", - "galaxy.log", - ], - } + "module": "uvicorn", + "args": ["--app-dir", "lib", "--factory", "galaxy.webapps.galaxy.fast_factory:factory"], + "env": { + "GALAXY_CONFIG_FILE": "${workspaceFolder}/config/galaxy.yml" + } + }, ] } diff --git a/scripts/fapi.py b/scripts/fapi.py deleted file mode 100644 index 1d94458bce5..00000000000 --- a/scripts/fapi.py +++ /dev/null @@ -1,21 +0,0 @@ -import uvicorn -from galaxy_main import ( - GalaxyConfigBuilder, - main, -) - -from galaxy.util.properties import load_app_properties -from galaxy.webapps.galaxy.buildapp import app_factory -from galaxy.webapps.galaxy.fast_app import initialize_fast_app - - -def wsgiloop(args, log): - config_builder = GalaxyConfigBuilder(args) - kwds = config_builder.app_kwds() - kwds = load_app_properties(**kwds) - gx = app_factory(global_conf=config_builder.global_conf(), **kwds) - uvicorn.run(initialize_fast_app(gx)) - - -if __name__ == '__main__': - main(wsgiloop)