build: add setupLocal task for local development config

This commit is contained in:
TapTap committed 2026-11-13 12:15:31 +00:00
1 parent af2a8bd35d
commit 656020f5c1
3 files changed
+56 -5

No files matched your search

+6 -3
View File
@@ -12,13 +12,14 @@ This is the short version. The detailed design and endpoint reference follow in
### 2. Configure the library
Copy the example config and edit the folder paths:
Create the local config and media directories:
```bash
cp config/library.example.yaml config/library.yaml
mkdir -p media/music media/longform
./gradlew setupLocal
```
This copies `config/library.example.yaml` to `config/library.yaml` (only when it does not exist), copies `config/users.example.yaml` to `config/users.yaml` and creates `media/music` plus `media/longform`. Both local config files are git-ignored, so `git pull` never touches them.
`config/library.yaml` defines every root the server indexes:
```yaml
@@ -42,6 +43,8 @@ The example file already uses these relative paths, so no edit is needed for loc
### 3. Configure users
`./gradlew setupLocal` already created it. To recreate it manually:
```bash
cp config/users.example.yaml config/users.yaml
```