Wekan是一个开源 Kanban Board过去使用 nodejs 很容易安装(假设您已经设置了 MongoDB)。我绊倒了 the guide to install Wekan on Ubuntu 16.04 的实际安装步骤:
Download the latest version wekan source code using the wget command and extract it.
wget https://github.com/wekan/wekan/releases/download/v0.63/wekan-0.63.tar.gz
tar xf wekan-0.63.tar.gz
And you will get a new directory named
bundle
. Go to that directory and install the Wekan dependencies using the npm command as shown below.
cd bundle/programs/server
npm install
找出 last stable version很简单,几乎每天都有新的稳定版本(截至 2019 年 3 月),这似乎与 common definition 相矛盾.
更重要的是,目录bundle/programs/server
不存在,只有server
,但不包含main.js
这是运行
node main.js
考虑的其他资源:
我当然检查了 official documentation , 但它看起来不是最新的。页面 https://github.com/wekan/wekan/wiki/Install-and-Update
正在重定向到一个相当凌乱的页面,该页面不再谈论独立安装。
我更喜欢最小化安装,不是使用 snap
的解决方案,如 computingforgeeks 中所述
关于更具体的安装还有一个 Unresolved 问题:Installing Wekan via Sandstorm on cPanel它遵循类似的方法。
最佳答案
Wekan 页面上的最新版本实际上没有现成的 Node 构建。
Wekan 是使用 Meteor 构建的你将需要 Meteor 来创建构建。这是因为您还可以使用 Meteor 针对 os.linux.x86_64
以外的其他架构构建它。
下面是如何构建 latest release as of today在你的开发机器上然后部署它:
自己构建
[1.] 安装 Meteor
curl https://install.meteor.com/ | sh
[2.]下载并解压最新的Wekan
wget https://github.com/wekan/wekan/archive/v2.48.tar.gz
tar xf wekan-2.48.tar.gz
cd wekan-2.48
[3.] 安装 Wekan 依赖
./rebuild-wekan.sh
# use option 1
[4.]安装依赖Meteor包
现在它变脏了。不知何故,所需的包没有包含在发行版中(一个问题应该在 GH 上打开)。您需要自己安装它们:
# create packages dir
mkdir -p packages
cd packages
# clone packages
git clone git@github.com:wekan/wekan-ldap.git
git clone git@github.com:wekan/meteor-accounts-cas.git
git clone git@github.com:wekan/wekan-scrollbar.git
# install repo and extract packages
git clone git@github.com:wekan/meteor-accounts-oidc.git
mv meteor-accounts-oidc/packages/switch_accounts-oidc ./
mv meteor-accounts-oidc/packages/switch_oidc ./
rm -rf meteor-accounts-oidc/
cd ../
[5.] 根据您的架构构建
meteor build ../build --architecute os.linux.x86_64
# go grab a coffee... yes even with nvme SSD...
构建准备就绪后,您可以前往 ../build
并检查 wekan-2.48.tar.gz
,它现在包含您构建的包,包括所描述的文件夹和文件。
如文档中所述使用此 bundle 进行部署。
总结
这仅描述了如何自己创建构建,我不保证构建包在部署到目标环境时会运行。
我认为版本在 GH 上的附加方式存在一些问题,或者他们明确希望它针对您要构建的架构保持打开状态。
无论如何,我会提出一个问题,要求提供更清晰的文档和对您提到的错误的再现的描述。
进一步阅读
关于node.js - 在 Ubuntu 上简单安装当前版本的 Wekan?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55103567/