Skip to content

Commit

Permalink
Fix dev sync (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
ProbablyFaiz committed Aug 15, 2024
1 parent 2acc7ae commit c443c57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rl/utils/dev_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def sync_repo(self):
"-avz",
"--files-from=-",
str(self.local_dir),
str(self.remote_dir),
f"{self.remote_user}@{self.remote_host}:{self.remote_dir}/",
],
input=file_list,
text=True,
Expand All @@ -73,7 +73,7 @@ def sync_repo(self):
@click.option("-r", "--remote-dir", required=True, help="Remote directory to sync to")
@click.option("-u", "--user", required=True, help="Remote user")
@click.option("-h", "--host", required=True, help="Remote host")
@click.option("-d", "--delay", default=5.0, help="Debounce delay in seconds")
@click.option("-d", "--delay", default=2.0, help="Debounce delay in seconds")
def main(local_dir: str, remote_dir: str, user: str, host: str, delay: float):
local_path = Path(local_dir).resolve()
handler = SyncHandler(local_path, user, host, remote_dir, delay)
Expand Down

0 comments on commit c443c57

Please sign in to comment.