profile
viewpoint

Ask questionsFreeBSD

Moved to here from #1155

From @dch

As the above URL has disappeared, here's the original content -I'll see if I can get a more current version of wekan & FreeBSD to run based on it, & if so I'll see about making an official port and use a new issue for that.

Install Wekan v0.32 on FreeBSD 11.0-RELEASE

Prerequisites

Add user wekan

# adduser

Install prerequisites packages

# pkg install mongodb node4 npm2

Enable MongoDB

# sysrc mongod_enable=YES
# service mongod start

Installation

As wekan

$ cd
$ fetch https://github.com/wekan/wekan/releases/download/v0.32/wekan-0.32.tar.gz
$ tar -xzpf wekan-0.32.tar.gz

As root

# chown -R wekan:wekan /home/wekan/bundle

As wekan

$ cd ~/bundle/programs/server
$ npm install
$ npm install fibers

Run

Considering that the default shell for a new user on FreeBSD is /bin/sh, the following ENV variables must be set according the following method before starting of Wekan. These must be adapted according the shell.

$ MONGO_URL=mongodb://127.0.0.1:27017/wekan; export MONGO_URL
$ ROOT_URL=https://example.com; export ROOT_URL
$ MAIL_URL=smtp://user:pass@mailserver.example.com:25/; export MAIL_URL
$ MAIL_FROM=wekan-admin@example.com; export MAIL_FROM
$ PORT=8080; export PORT

Now it can be run

$ cd ~/bundle
$ node main.js
wekan/wekan

Answer questions uropro

Install Wekan 3.45 on FreeBSD 12.0

The installation is possible but requires some small hacks:

  • The libraries 'phantomJS' is not available for FreeBSD 12.0, but as of now, it can be removed.
  • The library 'bcrypt' causes troubles, but can be fixed.

Install MongoDB 4.0:

# pkg install mongodb40 mongodb40-tools
# sysrc mongod_enable=YES
# service mongod start

Install node.js 8:

# pkg install node8 npm-node8 bcrypt

Make sure that python 2.7 will be found:

# cd /usr/local/bin
# ln -s python2.7 python2

Install wekan: Create an user 'wekan'

# adduser

Fetch sources:

# su wekan
$ cd /home/wekan
$ fetch https://releases.wekan.team/wekan-3.45.zip
$ tar xzpf wekan-3.45.zip
$ chown -R wekan:wekan /home/wekan/bundle

Remove phantomJS (so far wekan works well without phantomJS):

$ cd ~/bundle/programs/server/npm/node_modules/meteor/lucasantoniassi_accounts-lockout/node_modules
$ rm -rf phantomjs-prebuilt

Run npm first time (it will fail with bcrypt error):

$ cd ~/bundle/programs/server
$ npm install

Fix bcrypt problem:

npm install bcrypt
cd npm/node_modules
mv bcrypt ~/
cd ../..
npm install

now npm install should have completed successfully. Clean up and install fibers:

mv ~/bcrypt npm/node_modules
npm install fibers

Start wekan, set environment (/bin/sh - style) first:

MONGO_URL=mongodb://127.0.0.1:27017/wekan; export MONGO_URL
ROOT_URL=http://YOURDOMAIN.com; export ROOT_URL
MAIL_URL=smtp://YOURSMTP.com:25/; export MAIL_URL
MAIL_FROM=wekan-admin@YOURDOMAIN.com; export MAIL_FROM
PORT=8080; export PORT

cd ~/bundle
node main.js
useful!
source:https://uonfu.com/
Github User Rank List