Merge pull request #11258 from mvdbeek/dev_doc_update_debug_instructions

Update vscode dev instructions, drop helper script
This commit is contained in:
Dannon
2021-01-29 14:31:14 -05:00
committed by GitHub
2 changed files with 7 additions and 30 deletions
+7 -9
View File
@@ -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"
}
},
]
}
-21
View File
@@ -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)