mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #11258 from mvdbeek/dev_doc_update_debug_instructions
Update vscode dev instructions, drop helper script
This commit is contained in:
@@ -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"
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user