meilisearch/meilisearch-http/src
bors[bot] b0749407f3
Merge #2804
2804: Add environement variable `MEILI_CONFIG_FILE_PATH` to define the config file path r=Kerollmops a=choznerol

# Pull Request

## What does this PR do?
Fixes #2800

~This is a draft PR base on the code in #2745. I will `rebase` and mark it ready for review only after #2745 merge.~ Done rebase


## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?


## Demo

With `config.toml`, `config_copy1.toml` and `config_copy2.toml` present:
> <img width="692" alt="image" src="https://user-images.githubusercontent.com/12410942/192566891-6b3c9d26-736f-4e23-a09b-687fca1cb50d.png">

`MEILI_CONFIG_FILE_PATH` works:
> <img width="773" alt="image" src="https://user-images.githubusercontent.com/12410942/192567023-f751536e-992a-4e90-a176-cb19122248be.png">

`--config-file-path` still works:
> <img width="768" alt="image" src="https://user-images.githubusercontent.com/12410942/192567318-88c80b24-7873-4cec-8d08-16fe4d228055.png">

When both present, `--config-file-path` taks precedence:
> <img width="1214" alt="image" src="https://user-images.githubusercontent.com/12410942/192567477-8a7cffe1-96f0-42a9-a348-6dbec20dc1e7.png">



Co-authored-by: Lawrence Chou <choznerol@protonmail.com>
2022-10-17 10:40:05 +00:00
..
analytics Fix segment_analytics default_http_addr import 2022-10-06 22:42:20 -04:00
extractors Added support for encoded payload 2022-10-09 22:09:30 +02:00
routes fix: add handle dumpCreation query on tasks request 2022-10-11 19:36:04 +05:45
error.rs Add a new meilisearch_types crate 2022-06-09 16:14:13 +02:00
lib.rs move prometheus behind a feature flag 2022-08-29 14:36:59 +02:00
main.rs Add quotes around file name and change error message 2022-09-22 09:44:28 +02:00
metrics.rs cargo fmt 2022-08-23 17:17:02 +02:00
option.rs Merge #2804 2022-10-17 10:40:05 +00:00
route_metrics.rs move prometheus behind a feature flag 2022-08-29 14:36:59 +02:00
task.rs Rename receivedDocumentIds into matchedDocuments 2022-10-01 21:59:20 +02:00