如何使用 iisnode 在 IIS 上运行 Etherpad Lite?
(经过更多调查后于 2013-04-23 更新)
我的步骤(第一次尝试)
- 安装 Etherpad Lite
c:\eplite
并确保它在与 start.bat 一起运行时工作。 - 为 IIS 安装 URL 重写模块(iisnode 需要)。
- 安装 iisnode。
- 授予 IIS_IUSRS 对整体
c:\eplite
的完全控制权(有点矫枉过正,但要确保没有访问问题)。 - 配置指向
c:\eplite
. - 移至。
c:\eplite\node_modules\ep_etherpad-lite\Web.config
_c:\eplite
打开 IE,我可以看到“类似”etherpad 的东西,但它不起作用。在主页上没有文本(只有字段和按钮),尝试打开 pad 会导致 pad 界面无法正常工作:
An error occured while loading the pad
Invalid argument. in http://localhost/static/js/l10n.js (line 1)
我的步骤(第二次尝试,在这里阅读讨论后)
7.
编辑 settings.json:删除port
.
8.
创建 c:\eplite\start_iisnode.bat:
cd c:\eplite
node "c:\Program Files\iisnode\interceptor.js" "c:\eplite\node_modules\ep_etherpad-lite\node\server.js"
9.
将以下行添加到 Web.Config:
<iisnode nodeProcessCommandLine="c:\eplite\start_iisnode.bat" />
打开IE,这次可以看到正确的起始页了。打开焊盘会导致带文本的焊盘界面失效:
An error occured while loading the pad
The module at "ep_etherpad-lite/static/js/rjquery" does not exist. in http://localhost/static/js/require-kernel.js (line 1)
根据进程监视器,它尝试在以下路径中找到此模块:
C:\eplite\node_modules\ep_etherpad-lite\static\pipe\fb92fd16-78e4-4f00-bac4-6a4935ebd0d4\static\plugins\ep_etherpad-lite\static\js\rjquery.js
我还尝试过什么
步骤 1-4 + 配置指向 c:\eplite\node_modules\ep_etherpad-lite(Web.config 位置)的 IIS 网站 +
node_modules\ep_etherpad-lite
从 Web.Config 中的任何位置删除路径。结果与原始步骤 1-6 相同。步骤 1-4,7-9 + 配置指向 c:\eplite\node_modules\ep_etherpad-lite(Web.config 位置)的 IIS 网站 +
node_modules\ep_etherpad-lite
从 Web.Config 中的任何位置删除路径。结果与原始步骤 1-9 相同。
版本信息
来自“master”代码分支(最新版本是 1.2.10)的 Etherpad Lite,使用 installOnWindows.bat 构建。
节点版本 0.8.4 x64,iisnode 版本 0.2.4 x64。
在 Windows 8 上运行。