Files
wekan/docs/Platforms/FOSS/Source/Source.md
T
Lauri OjansivuandClaude Opus 4.8 7b66884ba3 docs: fix bare wiki-style links to relative paths of existing docs pages
Many docs still used flat GitHub-wiki page-name links like [Backup](Backup),
[OAuth2](OAuth2) or [FAQ](FAQ) that only resolved on the old wiki; in the docs/
hierarchy they were broken. Rewrite them to correct relative paths of the
existing pages (e.g. ](Backup) -> ](Backup.md), ](OAuth2) -> ](../Login/OAuth2.md),
](Sandstorm) -> ](../Platforms/FOSS/Sandstorm/Sandstorm.md)).

Mapping: page name -> docs/<...>/<Name>.md by filename, with explicit handling
for renamed pages (Caddy/Nginx-Webserver-Config, Wekan-Markdown, the Sandstorm
grain export page, Uberspace) and the REST-API-<X> family -> docs/API/<X>.md.
Ambiguous names resolved by preferring a same-directory file or the primary page.
Anchors and markdown titles preserved. 280 links across the docs tree.

Out of scope (left as-is): source-code references (models/*.js etc.) and
[Link](url) placeholders, which are not docs pages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-21 21:03:27 +03:00

4.2 KiB

Build from source on Mac

Build from source on Mac

Build from source on VirtualBox

At Virtual Appliance there is build scripts and all dependencies installed already.

Build from source on Linux

To have Node 100% CPU fixes: Increase ulimit for node in systemd config to 100 000

Wekan:

Wekan Meteor Bundle:

  1. Build from source scripts built on Wekan VirtualBox Ubuntu 14.04 64bit
  2. Copy arhive directory wekan/.build/bundle to .zip file so it includes bundle directory and subdirectories as wekan-1.xx.tar.gz

Wekan for Sandstorm:

  • Install above Wekan from source
  • Install Sandstorm locally with curl https://install.sandstorm.io | bash, select dev install
  • Install 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. 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

Wekan on Windows:

(Optional) Run Wekan as service with startup script

Build from source scripts - from there run node-allow-port-80.sh and add etc-rc.local.txt before last line in your /etc/rc.local

(Optional) Run Wekan as service with SystemD on Linux

This may need testing, does this work.

Add to to /etc/systemd/system/wekan@.service

; see `man systemd.unit` for configuration details
; the man section also explains *specifiers* `%x`
; update <username> with username below

[Unit]
Description=Wekan server %I
Documentation=https://github.com/wekan/wekan
After=network-online.target
Wants=network-online.target
Wants=systemd-networkd-wait-online.service

[Service]
ExecStart=/usr/local/bin/node /home/<username>/repos/wekan/.build/bundle/main.js
Restart=on-failure
StartLimitInterval=86400
StartLimitBurst=5
RestartSec=10
ExecReload=/bin/kill -USR1 $MAINPID
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=Wekan
User=<username>
Group=<username>
Environment=NODE_ENV=production
Environment=PWD=/home/<username>/repos/wekan/.build/bundle
Environment=PORT=3000
Environment=HTTP_FORWARDED_COUNT=1
Environment=MONGO_URL=mongodb://127.0.0.1:27017/admin
; https://example.com/wekan for deployment
Environment=ROOT_URL=http://localhost/wekan
Environment=MAIL_URL='smtp://user:pass@mailserver.example.com:25/'

[Install]
WantedBy=multi-user.target

To start Wekan and enable service, change to your username where Wekan files are:

sudo systemctl daemon-reload
sudo systemctl start wekan@<username>
sudo systemctl enable wekan@<username>

To stop Wekan and disable service, change to your username where Wekan files are:

sudo systemctl daemon-reload
sudo systemctl stop wekan@<username>
sudo systemctl disable wekan@<username>

Checkout instructions for setup with Caddy Webserver Config and Nginx Webserver Config respectively.

Windows

Building on Windows (if it works) is a lot slower than on Linux/Mac.

Windows