Update default database directory to working directory

This commit is contained in:
Thomas Payet 2019-11-29 15:22:45 +01:00
parent 7780293ddb
commit 089579d835
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
**/*.rs.bk
/*.mdb
/query-history.txt
/data.ms

View File

@ -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.