Merge pull request #355 from tpayet/master

Update binary default settings
This commit is contained in:
Clément Renault 2019-11-29 15:47:04 +01:00 committed by GitHub
commit d2b1690191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

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

View File

@ -3,11 +3,11 @@ use structopt::StructOpt;
#[derive(Debug, Clone, StructOpt)] #[derive(Debug, Clone, StructOpt)]
pub struct Opt { pub struct Opt {
/// The destination where the database must be created. /// 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, pub db_path: String,
/// The address on which the http server will listen. /// 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, pub http_addr: String,
/// The master key allowing you to do everything on the server. /// The master key allowing you to do everything on the server.