1// Pull production state for local development. cache.sqlite comes from the
2// source of truth's /db route (no ssh needed); questions.sqlite is still
3// rsync'd off the web node since the source of truth does not own it yet.
4export async function main() {
5 await sync.revalidate();
6 await rsync.spawn({
7 cwd: Path.resolve("."),
8 args: [
9 "-a",
10 "--progress",
11 "clo@paperclover.net:~/paperclover.net/.clover/questions.sqlite",
12 ".clover/questions.sqlite",
13 ],
14 progress: progress.start("download questions state"),
15 });
16}
17
18import { Path } from "#sitegen/path";
19import * as progress from "@clo/lib/progress";
20import * as rsync from "../file-viewer/rsync.ts";
21import * as sync from "../file-viewer/sync.ts";