开源看板 wekan windows 环境下 离线部署

  1. 如果已经按照过wekan,建议先备份,官方备份方法

  2. 下载node.js 安装包(后缀.msi的)并安装(官方说安装时要勾选“Install additional tools”,我安装时并无勾选,安装完后发现已经存在 Install additional tools for Node.js 所以此项基本可以忽略)
    nodejs下载地址: node.js 官方可能需要FQ
    重要:我在安装时下载node.js版本为14.15.5 始终无法启动,当切换到12.20.2时则可以顺利启动wekan,所以官方“Install newest Node.js LTS v12.x for Windows”这句话的意思应该是下载12大版本号的最新的版本

nodejs版本过高(v14.15.5)时启动wekan如此报错

E:\wekan environment\wekan-4.96\bundle>start-wekan.bat
## There is an issue with `node-fibers` ##
`E:\wekan environment\wekan-4.96\bundle\programs\server\node_modules\fibers\bin\win32-x64-83\fibers.node` is missing.

Try running this to fix the issue: E:\Program Files\nodejs\node.exe E:\wekan\ environment\wekan-4.96\bundle\programs\server\node_modules\fibers/build
Error: Cannot find module 'E:\wekan environment\wekan-4.96\bundle\programs\server\node_modules\fibers\bin\win32-x64-83\fibers'
Require stack:
- E:\wekan environment\wekan-4.96\bundle\programs\server\node_modules\fibers\fibers.js
- E:\wekan environment\wekan-4.96\bundle\programs\server\boot.js
- E:\wekan environment\wekan-4.96\bundle\main.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (E:\wekan environment\wekan-4.96\bundle\programs\server\node_modules\fibers\fibers.js:14:39)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Module.Mp._compile (E:\wekan environment\wekan-4.96\bundle\programs\server\runtime.js:50:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Module.Mp.load (E:\wekan environment\wekan-4.96\bundle\programs\server\runtime.js:15:31)
E:\wekan environment\wekan-4.96\bundle\programs\server\node_modules\fibers\fibers.js:23
                throw new Error('Missing binary. See message above.');
                ^

Error: Missing binary. See message above.
    at Object.<anonymous> (E:\wekan environment\wekan-4.96\bundle\programs\server\node_modules\fibers\fibers.js:23:9)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Module.Mp._compile (E:\wekan environment\wekan-4.96\bundle\programs\server\runtime.js:50:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Module.Mp.load (E:\wekan environment\wekan-4.96\bundle\programs\server\runtime.js:15:31)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (E:\wekan environment\wekan-4.96\bundle\programs\server\boot.js:2:15)
  1. 下载安装mongodb window版本(官方是用choco 命令安装,由于我部署的电脑是离线的,所以下载安装包安装) (地址:https://www.mongodb.com/download-center/community 菜鸟教程——详细mongodb安装教程),在选择安装时选择性勾选 Install MongoDB Compass (MongoDB Compass 是图形界面管理工具,此时不安装后面也可以单独下载安装,地址:https://www.mongodb.com/download-center/compass)

  2. 从https://releases.wekan.team下载最新版本的wekan部署压缩包(wekan-x.xx.zip,解压后是bundle文件夹)

  3. 解压wekan-x.xx.zip 得到bundle文件夹

  4. 从wekan github 源码中找到 start-wenkan.bat(start-wenkan.bat 就在wekan源码的根目录下,官方给的wiki地址无法下载) wekan github 仓库地址 “Default settins are: ROOT_URL=http://localhost and PORT=80, so it works only in local compatible browser. You can edit ROOT_URL to be or http://YOUR-IP-ADDRESS so it works on local network with http://YOUR-IP-ADDRESS . ” 修改start-wekan.bat 配置访问路径和端口

  5. windows 下安装的nodejs 和 mongodb 我的实践结果是:安装完成后自动启动,且开机自动启动,所以官方wiki的后续启动方法,可以作为参考,本文不使用

  6. 启动wekan,用管理员身份启动cmd.exe,

  cd bundle
  start-wekan.bat

部署成功显示

E:\wekan environment\wekan-4.96\bundle>start-wekan.bat
Note: you are using a pure-JavaScript implementation of bcrypt.
While this implementation will work correctly, it is known to be
approximately three times slower than the native implementation.
In order to use the native implementation instead, run

  meteor npm install --save bcrypt

in the root directory of your application.
Presence started serverId=i25QswKht75ewDZHe
{"line":"87","file":"packages\\percolate_synced-cron.js","message":"SyncedCron: Scheduled \"notification_cleanup\" next run @Fri Feb 19 2021 10:17:25 GMT+0800 (GMT+08:00)","time":{"$date":1613701045574},"level":"info"}
(node:8284) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

参考
wekan 官方wiki

posted @ 2021-02-19 11:18  httpc  阅读(1932)  评论(0编辑  收藏  举报