Skip to content
Merged
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
35 changes: 25 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ docker compose run --rm -w /lila ui pnpm run i18n-file-gen
docker compose cp mongodb:/data/db ./database
```

Then, in `compose.yml`, under `services.mongodb.volumes`:
Then, in `compose.yml`, under `services.mongodb.volumes`:

Add `- ./database:/data/db`

Expand Down Expand Up @@ -157,25 +157,40 @@ Once the build has been imported, you should have code completion, go to definit

If you're making changes to the Scalachess library, you can have lila use it instead of the published Maven version:

1. Update the `build.sbt` file in the scalachess repo:
1. Make sure you already have lila-docker up and running, with lila currently using the published Maven version of scalachess.

2. Then, update the `build.sbt` file in the scalachess repo:

```diff
- ThisBuild / version := "15.6.7"
+ ThisBuild / version := "my-test-1" # give it a custom version
- version := "17.16.1"
- organization := "com.github.lichess-org.scalachess"
+ version := "my-test-1" # give it a custom version
+ organization := "org.lichess"
```

3. Publish your local scalachess changes:

```bash
docker compose exec -w /scalachess lila sbt publishLocal
```

2. Update the `Dependencies.scala` file in the lila repo:
4. Make any code changes you may require in lila to use your scalachess version.

5. Update the `Dependencies.scala` file in lila:

```diff
- val chess = "org.lichess" %% "scalachess" % "15.6.7"
+ val chess = "org.lichess" %% "scalachess" % "my-test-1"
object chess:
- val version = "17.16.1"
- val org = "com.github.lichess-org.scalachess"
- // val org = "org.lichess" // for publishLocal
+ val version = "my-test-1"
+ val org = "org.lichess" // for publishLocal
```

3. Publish the local scalachess changes and restart lila:
6. Restart lila:

```bash
docker compose exec -w /scalachess lila sbt publishLocal
docker compose restart lila
./lila-docker lila restart
```

Other Scalachess commands:
Expand Down