fix: Update config files path

This commit is contained in:
Simone Persiani
2021-05-19 11:10:13 +02:00
committed by Joachim Van Herwegen
parent 452032e312
commit a7a0e2d264
4 changed files with 9 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
By default, the server will start with a set of preconfigured components.
These components are configured in [`config-default.json`](https://github.com/solid/community-server/tree/master/config/config-default.json).
These components are configured in [`config/default.json`](https://github.com/solid/community-server/tree/master/config/default.json).
Learn more about the structure of this config file in the [notes for developers](https://github.com/solid/community-server/wiki/Notes-for-developers#add-components-to-configuration).
## Local development environment
@@ -9,12 +9,12 @@ _This guide assumes the server is installed locally by cloning the git repo._
When starting the server via `bin/server.js`, you can provide another config via the `-c` flag.
For example:
```bash
$ bin/server.js -c config/config-default.json
$ bin/server.js -c config/default.json
```
The command above will behave in the exact same way as just running `bin/server.js`, since `config/config-default.json` is the default server config for when `-c` is not provided.
The command above will behave in the exact same way as just running `bin/server.js`, since `config/default.json` is the default server config for when `-c` is not provided.
If you for example create a copy from `config/config-default.json` named `my-config.json`, and make some adjustments, you can invoke it as follows:
If you for example create a copy from `config/default.json` named `my-config.json`, and make some adjustments, you can invoke it as follows:
```bash
$ bin/server.js -c my-config.json
```

View File

@@ -27,8 +27,8 @@ The advantage of this is that changing the configuration of components does not
### Config file structure
In order to add a component to the default configuration,
you will have to update [`config-default.json`](https://github.com/solid/community-server/tree/master/config/config-default.json),
or any of its _imported_ files, which exist in the [`presets`](https://github.com/solid/community-server/tree/master/config/presets) folder.
you will have to update [`config/default.json`](https://github.com/solid/community-server/tree/master/config/default.json),
or any of its _imported_ files, which exist in the [`config subfolders`](https://github.com/solid/community-server/tree/master/config/).
A component in a configuration file has the following structure:
```json