Skip to content

Commit 85cb0f0

Browse files
authored
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 #347
1 parent aa50ab8 commit 85cb0f0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/setup_selfbuild.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
To build mjolnir, you have to have installed `yarn` 1.x and Node 16.
1+
These instructions are to build and run mjolnir without using [Docker](./setup_docker.md).
2+
You need to have installed `yarn` 1.x and Node 16.
23

34
```bash
45
git clone https://github.com/matrix-org/mjolnir.git
@@ -7,9 +8,10 @@ cd mjolnir
78
yarn install
89
yarn build
910

10-
# Copy and edit the config. It *is* recommended to change the data path.
11-
cp config/default.yaml config/development.yaml
12-
nano config/development.yaml
11+
# Copy and edit the config. It *is* recommended to change the data path,
12+
# as this is set to `/data` by default for dockerized mjolnir.
13+
cp config/default.yaml config/production.yaml
14+
nano config/production.yaml
1315

14-
node lib/index.js
16+
NODE_ENV=production node lib/index.js
1517
```

0 commit comments

Comments
 (0)