Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions docs/setup_selfbuild.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
To build mjolnir, you have to have installed `yarn` 1.x and Node 16.
To build mjolnir, you have to have installed [Node >16](https://nodejs.org/en/download/), [npm](https://docs.npmjs.com/cli/v7/configuring-npm/install) and [yarn >1.x](https://classic.yarnpkg.com/en/docs/install).

Get the latest release-version https://github.com/matrix-org/mjolnir/releases/latest/ - for example `v1.6.0`.

```bash
git clone https://github.com/matrix-org/mjolnir.git
git clone https://github.com/matrix-org/mjolnir.git --branch v1.6.0
cd mjolnir

yarn install
yarn build

# Copy and edit the config. It *is* recommended to change the data path.
cp config/default.yaml config/development.yaml
nano config/development.yaml
cp config/default.yaml config/production.yaml
nano config/production.yaml

node lib/index.js
# Start Mjolnir and make use of the production.yaml (instead of default.yaml)
NODE_ENV=production node lib/index.js
```