Skip to content

Conversation

@josecelano
Copy link
Member

You can load configuration with an env var instead of the config.toml file:

TORRUST_IDX_BACK_CONFIG=$(cat config.toml) cargo run

This will make it easier to add Docker support.

I'm planning to add docker support because I want to add some E2E tests. To set up the test environment without changing the code, I'll use docker-compose with two services: the tracker and the backend and optionally the MySQL if we want to test with MySQL too.

You can load configuration with an env var instead of the `config.toml`
file:

```
TORRUST_IDX_BACK_CONFIG=$(cat config.toml) cargo run
```

This will make easier to add Docker support.
@josecelano josecelano merged commit 90f217e into torrust:develop Apr 18, 2023
@josecelano josecelano deleted the load-config-from-env-var branch April 18, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant