CJ_Clippy 665b7ea924
Some checks failed
fp/our CI/CD / build (push) Successful in 2m15s
ci / test (push) Failing after 4m21s
signed urls allow querystrings
2025-11-14 17:11:07 -08:00

29 lines
479 B
JavaScript

#!/usr/bin/env node
import spawn from 'nano-spawn';
async function main() {
// upload the site
await spawn('rsync', [
'-avz',
'--exclude=pb_data',
'--exclude=*.local',
'-e',
'ssh',
'.',
'root@fp:/home/pb/pb'
], {
stdio: 'inherit'
});
// fix ownership
await spawn('ssh', ['fp', 'chown', '-R', 'pb:pb', '/home/pb/pb']);
// restart pocketbase
await spawn('systemctl', ['--host=fp', 'restart', 'pocketbase.service']);
}
main();