Skip to content

Commit 871938c

Browse files
dpsideriusclaude
andcommitted
README: use absolute repo path in Pi rsync command
Avoid the './' source that, run from the wrong directory, pushed home-folder contents and (with --delete) wiped the repo on the Pi. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 553f132 commit 871938c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,19 @@ for the full daemon behavior and access notes.
155155
### Deploying updates from the laptop (rsync — the Pi is not on git)
156156

157157
The Pi has **no git checkout**; code is pushed to it from the laptop with `rsync` over
158-
SSH and then rebuilt and restarted there. From the repo root on the laptop:
158+
SSH and then rebuilt and restarted there. Run this from anywhere on the laptop — the
159+
source is given as an **absolute path** (with a trailing `/`, meaning "the contents of
160+
this folder") so it can't accidentally sync the wrong directory:
159161

160162
```bash
161163
# 1. push the source (skip node_modules, the build output, and .git)
164+
# Source is the absolute repo path — do NOT use "./" (if you're in the wrong
165+
# directory, "./" + --delete will push junk and wipe the repo on the Pi).
162166
rsync -av --delete \
163167
--exclude node_modules --exclude dist --exclude .git \
164168
--exclude 'gateway/.plotter-state.json' \
165-
./ penplotter@penplotter.local:~/PenPlotter271/
169+
/Users/dsiderius/Desktop/Internal_Projects/PenPlotter271/ \
170+
penplotter@penplotter.local:~/PenPlotter271/
166171

167172
# 2. rebuild on the Pi and restart the daemon
168173
ssh penplotter@penplotter.local '

0 commit comments

Comments
 (0)