mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
22 lines
562 B
Python
22 lines
562 B
Python
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)
|