File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Resolve ` FileNotFoundError ` for gateway config in TUI installer by adding symlink to ` gateway.config.ts ` and fixing duplicate debug field in webserver template
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ resources(
8686 "configs/**/*.toml" ,
8787 "configs/**/*.yaml" ,
8888 "configs/**/*.json" ,
89+ "configs/**/*.ts" ,
8990 "fixtures/**/*.json" ,
9091 ],
9192)
Original file line number Diff line number Diff line change 1+ ../../../../../configs/graphql/gateway.config.ts
Original file line number Diff line number Diff line change @@ -354,17 +354,15 @@ def _write_supergraph() -> None:
354354 self .log_header (f"Wrote supergraph schema to { output_path } " )
355355
356356 base_path = self .install_info .base_path
357- project_root = Path (__file__ ).resolve ().parents [4 ]
358357
359- src_gateway = project_root / " configs/graphql/ gateway.config.ts"
360- dst_gateway = base_path / "gateway.config.ts"
361- shutil .copy2 (src_gateway , dst_gateway )
362- self .log_header (f"Copied { src_gateway } -> { dst_gateway } " )
358+ with self . resource_path ( "ai.backend.install. configs" , " gateway.config.ts") as src_gateway :
359+ dst_gateway = base_path / "gateway.config.ts"
360+ shutil .copy (src_gateway , dst_gateway )
361+ self .log_header (f"Copied gateway.config.ts -> { dst_gateway } " )
363362
364- src_supergraph = project_root / "docs/manager/graphql-reference/supergraph.graphql"
365363 dst_supergraph = base_path / "supergraph.graphql"
366- shutil .copy2 ( src_supergraph , dst_supergraph )
367- self .log_header (f"Copied { src_supergraph } -> { dst_supergraph } " )
364+ shutil .copy ( Path ( output_path ) , dst_supergraph )
365+ self .log_header (f"Copied supergraph.graphql -> { dst_supergraph } " )
368366
369367 dst_compose_path = self .copy_config ("docker-compose.yml" )
370368 self .copy_config ("prometheus.yaml" )
You can’t perform that action at this time.
0 commit comments