From 089579d835dbc46e85bbed7a95da1e007ff76214 Mon Sep 17 00:00:00 2001 From: Thomas Payet Date: Fri, 29 Nov 2019 15:22:45 +0100 Subject: [PATCH 1/2] Update default database directory to working directory --- .gitignore | 1 + meilisearch-http/src/option.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c5c230f88..3ae73d6d8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ **/*.rs.bk /*.mdb /query-history.txt +/data.ms diff --git a/meilisearch-http/src/option.rs b/meilisearch-http/src/option.rs index 40f183121..00a9fce53 100644 --- a/meilisearch-http/src/option.rs +++ b/meilisearch-http/src/option.rs @@ -3,7 +3,7 @@ use structopt::StructOpt; #[derive(Debug, Clone, StructOpt)] pub struct Opt { /// The destination where the database must be created. - #[structopt(long, env = "MEILI_DB_PATH", default_value = "/tmp/meilisearch")] + #[structopt(long, env = "MEILI_DB_PATH", default_value = "./data.ms")] pub db_path: String, /// The address on which the http server will listen. From 710b7ea091df54cfe275175450a4a44c21c79fc4 Mon Sep 17 00:00:00 2001 From: Thomas Payet Date: Fri, 29 Nov 2019 15:23:26 +0100 Subject: [PATCH 2/2] Update default listening port to 7700 --- meilisearch-http/src/option.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/option.rs b/meilisearch-http/src/option.rs index 00a9fce53..828d68130 100644 --- a/meilisearch-http/src/option.rs +++ b/meilisearch-http/src/option.rs @@ -7,7 +7,7 @@ pub struct Opt { pub db_path: String, /// The address on which the http server will listen. - #[structopt(long, env = "MEILI_HTTP_ADDR", default_value = "127.0.0.1:8080")] + #[structopt(long, env = "MEILI_HTTP_ADDR", default_value = "127.0.0.1:7700")] pub http_addr: String, /// The master key allowing you to do everything on the server.