Scope folder realtime refreshes by device

This commit is contained in:
kris
2026-04-10 12:55:43 +08:00
parent d1e5a1ac5e
commit 0cba837ed3
11 changed files with 357 additions and 9 deletions

View File

@@ -83,6 +83,9 @@ exec "$@"
assert.equal(sshCalls.length, 2);
assert.match(sshCalls[0] ?? "", /sudo mkdir -p \/opt\/boss/);
assert.match(rsyncArgs, /--rsync-path=sudo rsync/);
assert.match(rsyncArgs, /--exclude \.project/);
assert.match(rsyncArgs, /--exclude \.classpath/);
assert.match(rsyncArgs, /--exclude \.settings/);
assert.match(sshCalls[1] ?? "", /bootstrap-server\.sh/);
assert.match(sshCalls[1] ?? "", /sudo chown -R ubuntu:ubuntu \/opt\/boss\/data \/opt\/boss\/public\/downloads/);
assert.match(sshCalls[1] ?? "", /npm install --omit=dev/);