Skip to content

Commit

Permalink
fix: run cloud command the second time
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang committed Dec 19, 2024
1 parent cd2f54d commit 08d574b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openllm/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def _get_deploy_cmd(bento: BentoInfo, target: typing.Optional[DeploymentTarget]
base_config = resolve_cloud_config()
if not base_config.exists():
raise Exception('Cannot find cloud config.')
# remove before copy
if (bento.repo.path / 'bentoml' / '.yatai.yaml').exists():
(bento.repo.path / 'bentoml' / '.yatai.yaml').unlink()
shutil.copy(base_config, bento.repo.path / 'bentoml' / '.yatai.yaml')

return cmd, env, None
Expand Down

0 comments on commit 08d574b

Please sign in to comment.