deckide 3.5.6 → 3.5.7
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/bin/deckide.js +8 -5
- package/package.json +1 -1
package/bin/deckide.js
CHANGED
|
@@ -449,11 +449,14 @@ if (isServerRunningOnPort(port)) {
|
|
|
449
449
|
process.exit(0);
|
|
450
450
|
}
|
|
451
451
|
|
|
452
|
-
// Kill old server if running on a different port
|
|
453
|
-
|
|
454
|
-
if (
|
|
455
|
-
|
|
456
|
-
|
|
452
|
+
// Kill old server if running on a different port (only in background mode,
|
|
453
|
+
// FG mode is always spawned by background mode which already handles this)
|
|
454
|
+
if (!startOptions.fg) {
|
|
455
|
+
const oldPid = getRunningPid();
|
|
456
|
+
if (oldPid) {
|
|
457
|
+
console.log('Stopping old server...');
|
|
458
|
+
stopServer();
|
|
459
|
+
}
|
|
457
460
|
}
|
|
458
461
|
|
|
459
462
|
// ── Background mode (default) ──
|