diff --git a/Source.md b/Source.md new file mode 100644 index 0000000..1089a73 --- /dev/null +++ b/Source.md @@ -0,0 +1,29 @@ +## Build from source + +To have [Node 100% CPU fixes](https://github.com/wekan/wekan/blob/devel/CHANGELOG.md#v084-2018-04-16-wekan-release): +1) Increase ulimit for node in systemd config +2) Use Fibers fixed [node source from Sandstorm](https://github.com/sandstorm-io/node/commits/sandstorm) or binary [copied from Sandstorm](https://github.com/wekan/wekan-mongodb/issues/2#issuecomment-381453161) or downloaded as node binary or tar.gz package from https://releases.wekan.team , related fixes are in Wekan GitHub repo Dockerfile, snapcraft.yaml and wekan/server/authentication.js + +Wekan: +- On any x64 hardware that has Ubuntu 14.04 or Debian 9 or newer installed directly or in VM: +[Build from source scripts](https://github.com/wekan/wekan-maintainer/tree/master/virtualbox) + +Wekan for Sandstorm: +- Install above Wekan from source +- Install [Sandstorm locally](https://sandstorm.io/install) with `curl https://install.sandstorm.io | bash`, select dev install +- Install [meteor-spk](https://github.com/sandstorm-io/meteor-spk) +- Get 100% CPU issue fibers fixed node, and copy it to spk directory:
+`wget https://releases.wekan.team/node`
+`chmod +x node`
+`mv node ~/projects/meteor-spk/meteor-spk-0.4.0/meteor-spk.deps/bin/` +- Add to your /home/username/.bashrc :
`export PATH=$PATH:$HOME/projects/meteor-spk/meteor-spk-0.4.0` +- Close and open your terminal, or read settings from .bashrc with
`source ~/.bashrc` +- `cd wekan && meteor-spk dev` +- Then Wekan will be visible at local sandstorm at http://local.sandstorm.io:6080/ +- Sandstorm commands: `sudo sandstorm`. [Release scripts](https://github.com/wekan/wekan-maintainer/tree/master/releases). Official releases require publishing key that only xet7 has. + +Docker: +- `git clone https://github.com/wekan/wekan` +- `cd wekan` +- Edit docker-compose.yml script ROOT_URL etc like documented at https://github.com/wekan/wekan-mongodb docker-compose.yml script +- `docker-compose up -d --build` \ No newline at end of file