From 85cb0f021547f9b89bb5872de0d0bbc25f83303d Mon Sep 17 00:00:00 2001 From: Gnuxie <50846879+Gnuxie@users.noreply.github.com> Date: Tue, 22 Nov 2022 10:38:04 +0000 Subject: [PATCH] Update selfbuld docs to no longer require on old behaviour. (#429) The package we used to load config in the past, `node-config`, would default to `development`. https://github.com/node-config/node-config/blob/f54b41990095c2b340ae129dfd8f623da1dfa20d/lib/config.js#L561 https://github.com/matrix-org/mjolnir/pull/347 --- docs/setup_selfbuild.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/setup_selfbuild.md b/docs/setup_selfbuild.md index 908078a..b39a755 100644 --- a/docs/setup_selfbuild.md +++ b/docs/setup_selfbuild.md @@ -1,4 +1,5 @@ -To build mjolnir, you have to have installed `yarn` 1.x and Node 16. +These instructions are to build and run mjolnir without using [Docker](./setup_docker.md). +You need to have installed `yarn` 1.x and Node 16. ```bash git clone https://github.com/matrix-org/mjolnir.git @@ -7,9 +8,10 @@ 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 +# Copy and edit the config. It *is* recommended to change the data path, +# as this is set to `/data` by default for dockerized mjolnir. +cp config/default.yaml config/production.yaml +nano config/production.yaml -node lib/index.js +NODE_ENV=production node lib/index.js ```