@metric-im/administrate 2.1.0 → 2.1.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/multisite.mjs +5 -1
  2. package/package.json +1 -1
package/multisite.mjs CHANGED
@@ -373,7 +373,11 @@ export class Site {
373
373
  }
374
374
  static Clone(name, multisite) {
375
375
  const options = {
376
- cwd: process.cwd(),
376
+ // The site runs from its own sites/<name> dir — same as the startup
377
+ // path. Using process.cwd() (the harness dir) here spawned the child
378
+ // in the wrong directory, so restartSite() and add-a-site-after-boot
379
+ // never launched the actual site.
380
+ cwd: resolve(`./sites/${name}`),
377
381
  env: {PORT:multisite.spawnPort,meta:multisite.options}
378
382
  };
379
383
  const instance = new Site(name,options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metric-im/administrate",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Tools for site administration",
5
5
  "homepage": "https://github.com/metric-im/administrate#readme",
6
6
  "bugs": {