mjolnir/docs/setup_selfbuild.md
Shay 8bf628e5bd
Bump node version to 18 (#496)
* try win dns res

* add dns hack to application service tests

* fix unused import

* update types

* add note about why dns resolution order is necessary
2023-11-14 12:52:53 -08:00

988 B

These instructions are to build and run mjolnir without using Docker. To build mjolnir, you have to have installed Node >=18, npm and yarn >1.x.

Copy the latest release tag from https://github.com/matrix-org/mjolnir/releases/latest/ to use when cloning. For example v1.6.1 - please check the link for the current version as this mentioned example might be outdated.

git clone https://github.com/matrix-org/mjolnir.git --branch <release tag>
cd mjolnir

yarn install
yarn build

# Copy and edit the config. It *is* recommended to change `dataPath`,
# as this is set to `/data` by default for dockerized mjolnir.
cp config/default.yaml config/production.yaml
nano config/production.yaml

# Start Mjolnir and use production.yaml (instead of default.yaml)
node lib/index.js --mjolnir-config ./config/production.yaml