在 Ubuntu 上简单安装当前版本的 Wekan?

Plain installation of current version of Wekan on Ubuntu?

Wekan is an open-source Kanban Board which used to be easy to install using nodejs (given that you already set up your MongoDB). I am stumbling upon the actual installation steps of 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 is easy, there are new stable versions nearly every day (as of March 2019), which somehow seem to contradict the common definition.

更重要的是,目录 bundle/programs/server 不存在,只有 server,但它不包含 运行 [=28] 所必需的 main.js =]

node main.js

考虑的其他资源:

我当然检查了 official documentation,但它看起来不是最新的。页面 https://github.com/wekan/wekan/wiki/Install-and-Update 正在重定向到一个相当凌乱的页面,该页面不再谈论独立安装。

我更喜欢最小化安装,而不是使用snap的解决方案,如computingforgeeks

所述

关于更具体的安装,还有一个未解决的问题:Installing Wekan via Sandstorm on cPanel 遵循类似的方法。

Wekan 页面上的最新版本实际上没有现成的节点构建。

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,它现在包含您的构建包,包括所述文件夹和文件。

按照文档中的描述使用此包进行部署。

总结

这仅描述了如何自己创建构建,我不保证构建包在部署到您的目标环境时会 运行。

我认为版本在 GH 上的附加方式存在一些问题,或者他们明确希望它针对您要构建的架构保持打开状态。

无论如何,我会提出一个问题,要求提供更清晰的文档和对您提到的错误的再现的描述。

进一步阅读

https://guide.meteor.com/deployment.html#custom-deployment