shsu 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/shsu.mjs +39 -11
  2. package/package.json +1 -1
package/bin/shsu.mjs CHANGED
@@ -471,12 +471,16 @@ To fix, add to package.json:
471
471
  {
472
472
  "shsu": {
473
473
  "server": "root@your-server.com",
474
- "remotePath": "/data/coolify/services/xxx/volumes/functions"
474
+ "remotePath": "/data/coolify/services/xxx/volumes/functions",
475
+ "url": "https://your-supabase.example.com",
476
+ "edgeContainer": "edge",
477
+ "dbContainer": "postgres"
475
478
  }
476
479
  }
477
480
 
478
- Find remotePath by running on your server:
479
- docker inspect $(docker ps -q --filter 'name=edge') | grep -A 5 "Mounts"` }] };
481
+ To find the values, SSH to your server and run:
482
+ docker ps # Find container names (e.g., xxx-supabase-edge-1)
483
+ docker inspect <container> # Find volume paths in "Mounts" section` }] };
480
484
  }
481
485
  const funcName = args.name;
482
486
  const noRestart = args.noRestart || false;
@@ -509,12 +513,16 @@ To fix, add to package.json:
509
513
  {
510
514
  "shsu": {
511
515
  "server": "root@your-server.com",
512
- "remotePath": "/data/coolify/services/xxx/volumes/functions"
516
+ "remotePath": "/data/coolify/services/xxx/volumes/functions",
517
+ "url": "https://your-supabase.example.com",
518
+ "edgeContainer": "edge",
519
+ "dbContainer": "postgres"
513
520
  }
514
521
  }
515
522
 
516
- Find remotePath by running on your server:
517
- docker inspect $(docker ps -q --filter 'name=edge') | grep -A 5 "Mounts"` }] };
523
+ To find the values, SSH to your server and run:
524
+ docker ps # Find container names (e.g., xxx-supabase-edge-1)
525
+ docker inspect <container> # Find volume paths in "Mounts" section` }] };
518
526
  }
519
527
  const remote = captureExec(`ssh ${config.server} "ls -1 ${config.remotePath} 2>/dev/null"`) || '(none)';
520
528
  let local = '(none)';
@@ -534,7 +542,11 @@ Find remotePath by running on your server:
534
542
  To fix, add to package.json:
535
543
  {
536
544
  "shsu": {
537
- "url": "https://your-supabase.example.com"
545
+ "server": "root@your-server.com",
546
+ "remotePath": "/data/coolify/services/xxx/volumes/functions",
547
+ "url": "https://your-supabase.example.com",
548
+ "edgeContainer": "edge",
549
+ "dbContainer": "postgres"
538
550
  }
539
551
  }` }] };
540
552
  }
@@ -555,9 +567,17 @@ Usage: invoke tool with { "name": "function-name", "data": "{\\"key\\": \\"value
555
567
  To fix, add to package.json:
556
568
  {
557
569
  "shsu": {
558
- "server": "root@your-server.com"
570
+ "server": "root@your-server.com",
571
+ "remotePath": "/data/coolify/services/xxx/volumes/functions",
572
+ "url": "https://your-supabase.example.com",
573
+ "edgeContainer": "edge",
574
+ "dbContainer": "postgres"
559
575
  }
560
- }` }] };
576
+ }
577
+
578
+ To find the values, SSH to your server and run:
579
+ docker ps # Find container names (e.g., xxx-supabase-edge-1)
580
+ docker inspect <container> # Find volume paths in "Mounts" section` }] };
561
581
  }
562
582
  const output = captureExec(`ssh ${config.server} "docker restart \\$(docker ps -q --filter 'name=${config.edgeContainer}')"`);
563
583
  return { content: [{ type: 'text', text: `Restarted edge-runtime\n\n${output}` }] };
@@ -614,9 +634,17 @@ The function already exists at ${funcPath}. To update it, edit the code and use
614
634
  To fix, add to package.json:
615
635
  {
616
636
  "shsu": {
617
- "server": "root@your-server.com"
637
+ "server": "root@your-server.com",
638
+ "remotePath": "/data/coolify/services/xxx/volumes/functions",
639
+ "url": "https://your-supabase.example.com",
640
+ "edgeContainer": "edge",
641
+ "dbContainer": "postgres"
618
642
  }
619
- }` }] };
643
+ }
644
+
645
+ To find the values, SSH to your server and run:
646
+ docker ps # Find container names (e.g., xxx-supabase-edge-1)
647
+ docker inspect <container> # Find volume paths in "Mounts" section` }] };
620
648
  }
621
649
  if (!existsSync(config.migrationsPath)) {
622
650
  return { content: [{ type: 'text', text: `Error: Migrations folder not found: ${config.migrationsPath}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shsu",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "CLI for deploying and managing Supabase Edge Functions on self-hosted Supabase (Coolify, Docker Compose). Sync functions via rsync, stream logs, and invoke endpoints.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"