@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.
- package/multisite.mjs +5 -1
- 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
|
-
|
|
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);
|