windows: Fix path to `server.js` in `start.bat`

pull/4816/head
Richard Hansen 2021-02-17 17:08:04 -05:00 committed by John McLear
parent 29f2cd34f0
commit 22a67c5dc6
1 changed files with 11 additions and 1 deletions

View File

@ -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