@sysnee/pgs 0.1.7-rc.13 → 0.1.7-rc.14
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.
- package/manager.js +7 -1
- package/package.json +1 -1
package/manager.js
CHANGED
|
@@ -432,7 +432,13 @@ function createTenant(tenantId, options = {}) {
|
|
|
432
432
|
const doc = loadCompose();
|
|
433
433
|
|
|
434
434
|
if (doc.services && doc.services[`pgs_${tenantId}`]) {
|
|
435
|
-
|
|
435
|
+
console.log(`Tenant ${tenantId} already exists; ensuring it's up`);
|
|
436
|
+
try {
|
|
437
|
+
executeCommand(`docker compose up -d pgs_${tenantId}`);
|
|
438
|
+
} catch (err) {
|
|
439
|
+
console.warn(`Warning: failed to ensure ${tenantId} is up: ${err.message}`);
|
|
440
|
+
}
|
|
441
|
+
return { tenantId, serviceName: `pgs_${tenantId}` };
|
|
436
442
|
}
|
|
437
443
|
|
|
438
444
|
if (!doc.services) {
|