From 22a67c5dc6b6408c57ec4d09a7d8853e6d644432 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Wed, 17 Feb 2021 17:08:04 -0500 Subject: [PATCH] windows: Fix path to `server.js` in `start.bat` --- start.bat | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/start.bat b/start.bat index 9199a674..7e9264ee 100644 --- a/start.bat +++ b/start.bat @@ -1 +1,11 @@ -node src\node\server.js +@echo off +REM Windows and symlinks do not get along with each other, so on Windows +REM `node_modules\ep_etherpad-lite` is sometimes a full copy of `src` not a +REM symlink to `src`. If it is a copy, Node.js sees `src\foo.js` and +REM `node_modules\ep_etherpad-lite\foo.js` as two independent modules with +REM independent state, when they should be treated as the same file. To work +REM around this, everything must consistently use either `src` or +REM `node_modules\ep_etherpad-lite` on Windows. Because some plugins access +REM Etherpad internals via `require('ep_etherpad-lite/foo')`, +REM `node_modules\ep_etherpad-lite` is used here. +node node_modules\ep_etherpad-lite\node\server.js