Skip to content

Commit 82be563

Browse files
committed
fix(deploy_robots): default to bitbots_main workspace
as we now sync to the home dir otherwise with `rsync --delete` and this results in deleting a bunch of important files e.g. `.zshrc`
1 parent f14c281 commit 82be563

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/deploy/deploy_robots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def _parse_arguments(self) -> argparse.Namespace:
118118
parser.add_argument(
119119
"-w",
120120
"--workspace",
121-
default=".",
122-
help="Path to the workspace directory to deploy to. Defaults to the current directory.",
121+
default="./bitbots_main",
122+
help="Path to the workspace directory to deploy to. Defaults to the directory 'bitbots_main'.",
123123
)
124124
parser.add_argument("--skip-local-repo-check", action="store_true", help="Skip the local repository check.")
125125

scripts/deploy/tasks/sync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def _sync_single(connection: Connection) -> Result | None:
4545
"rsync",
4646
"--checksum",
4747
"--archive",
48+
"--delete",
4849
"-e",
4950
'"ssh -o StrictHostKeyChecking=no"',
5051
f"--exclude-from={os.path.join(self._local_workspace, '.rsyncignore')}",

0 commit comments

Comments
 (0)