Skip to content

Commit

Permalink
Mention env variable config overrides in README
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-low committed Oct 28, 2024
1 parent 5beee87 commit 3126e0a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ docker run \
* NOTE: It is helpful to see logs with `docker logs -f maproulette-postgis`
* NOTE: To stop the container, that'd be `docker stop maproulette-postgis`. Then you can start it again using `docker start maproulette-postgis`.

#### MapRoulette Database Configuration
#### Configuration

Clone the maproulette-backend repository and `cd` to that directory, and create `conf/dev.conf` using the example file:

Expand All @@ -110,6 +110,13 @@ db.default {
}
```

Alternatively, you can configure the backend using environment variables. The
variables `MR_DATABASE_URL`, `MR_DATABASE_USERNAME` and `MR_DATABASE_PASSWORD`
control the same values as the config parameters shown above. Look in `conf/
application.conf` for what else can be overridden via environment variables.
Any pattern like `${?FOO}` in that file will be replaced with the value of the
environment variable `FOO` at runtime.

Now start the MapRoulette server! Run this command in a terminal, **not within Intellij/vscode**:

`sbt -J-Xms4G -J-Xmx4G -J-Dconfig.file=./conf/dev.conf -J-Dlogger.resource=logback-dev.xml run`
Expand Down

0 comments on commit 3126e0a

Please sign in to comment.