@envsync-cloud/deploy-cli 0.9.1 → 0.10.1

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/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6720,7 +6720,7 @@ function createApiDbUpgradeBackup(config, fromVersion, toVersion) {
6720
6720
  "postgres:17",
6721
6721
  "sh",
6722
6722
  "-lc",
6723
- `pg_dump -h postgres -U postgres -d envsync -Fc -f /backup/${fileName}`
6723
+ `pg_dump -h ${config.services.stack_name}_postgres -U postgres -d envsync -Fc -f /backup/${fileName}`
6724
6724
  ]);
6725
6725
  logSuccess(`API DB upgrade snapshot created at ${hostPath}`);
6726
6726
  return hostPath;
@@ -6744,7 +6744,7 @@ function restoreApiDbUpgradeBackup(config, backupPath) {
6744
6744
  "postgres:17",
6745
6745
  "sh",
6746
6746
  "-lc",
6747
- `pg_restore --clean --if-exists --no-owner --no-privileges -h postgres -U postgres -d envsync /backup/${fileName}`
6747
+ `pg_restore --clean --if-exists --no-owner --no-privileges -h ${config.services.stack_name}_postgres -U postgres -d envsync /backup/${fileName}`
6748
6748
  ]);
6749
6749
  logSuccess(`API DB upgrade snapshot restored from ${backupPath}`);
6750
6750
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envsync-cloud/deploy-cli",
3
- "version": "0.9.1",
3
+ "version": "0.10.1",
4
4
  "description": "CLI for self-hosted EnvSync deployment on Docker Swarm",
5
5
  "type": "module",
6
6
  "bin": {