KanServer: Difference between revisions
From CLAIF Wiki
Jump to navigationJump to search
JuliaLongtin (talk | contribs) |
JuliaLongtin (talk | contribs) |
||
| Line 28: | Line 28: | ||
sudo systemctl enable ferretdb.service | sudo systemctl enable ferretdb.service | ||
sudo service ferretdb start | sudo service ferretdb start | ||
=== Initializing the Database == | |||
su - | |||
su - postgres | |||
CREATE ROLE ferret WITH PASSWORD '<PASSWORD_GOES_HERE>'; | |||
CREATE DATABASE ferretdb; | |||
GRANT ALL PRIVILEGES ON DATABASE ferretdb TO ferret; | |||
ALTER ROLE ferret WITH LOGIN; | |||
Edit /etc/postgresql/17/main/postgresql.conf | |||
* set '''shared_preload_libraries = 'documentdb'''' | |||
sudo service postgresql restart | |||
== Launching WeKan == | == Launching WeKan == | ||
Revision as of 17:33, 11 January 2026
Post Install
WeKan
git clone https://github.com/wekan/wekan.git cd wekan git checkout v8.17 sudo apt update sudo apt install -y build-essential gcc g++ make git curl wget p7zip-full zip unzip unp npm p7zip-full sudo npm install -g n export N_NODE_MIRROR=https://github.com/wekan/node-v14-esm/releases/download sudo -E n 14.21.4 sudo npm -g install @mapbox/node-pre-gyp sudo npm -g install meteor@2.14 --unsafe-perm export PATH=$PATH:/home/demo/.meteor meteor npm install production meteor build .build --directory --platforms=web.browser
Postgres 17 + DocumentDB
sudo bash -c 'curl -fsSL https://repo.pigsty.io/pig | bash' pig repo add all -u pig ext install pg17 pig ext install documentdb
FerretDB
curl -L https://github.com/FerretDB/FerretDB/releases/download/v2.7.0/ferretdb-amd64-linux.deb -o /tmp/ferretdb-amd64-linux.deb sudo dpkg -i /tmp/ferretdb-amd64-linux.deb sudo systemctl enable ferretdb.service sudo service ferretdb start
= Initializing the Database
su - su - postgres CREATE ROLE ferret WITH PASSWORD '<PASSWORD_GOES_HERE>'; CREATE DATABASE ferretdb; GRANT ALL PRIVILEGES ON DATABASE ferretdb TO ferret; ALTER ROLE ferret WITH LOGIN;
Edit /etc/postgresql/17/main/postgresql.conf
* set shared_preload_libraries = 'documentdb'
sudo service postgresql restart
Launching WeKan
export PATH=$PATH:/home/demo/.meteor cd ~/wekan MONGO_URL=mongodb://ferret:<DB_PASSWORD_GOES_HERE>@127.0.0.1:27017/wekan WRITABLE_PATH=.. WITH_API=true RICHER_CARD_COMMENT_EDITOR=false ROOT_URL=https://kan.faikvm.com meteor run --exclude-archs web.browser.legacy,web.cordova --port 8080 2>&1 | tee ../wekan-log.`date +%s`.txt
Notes
- Machine must have at least 3 gigs of ram. Crashes at npm installing meteor, with 384 megs.
- Machine must have at least 4 gigs of ram. Crashes at meteor build with 3 gigs.
- be ready to read rebuild-wekan.sh if you want to actually get it running.