put mini-dashboard in out-dir

This commit is contained in:
Marin Postma 2021-04-27 09:32:17 +02:00
parent 1f32f35d9e
commit 5014f74649
No known key found for this signature in database
GPG Key ID: D5241F0C0C865F30
2 changed files with 3 additions and 4 deletions

2
.gitignore vendored
View File

@ -5,5 +5,3 @@
/*.mdb
/query-history.txt
/data.ms
/meilisearch-http/mini-dashboard
/meilisearch-http/.mini-dashboard.sha1

View File

@ -28,9 +28,10 @@ mod mini_dashboard {
pub fn setup_mini_dashboard() -> anyhow::Result<()> {
let cargo_manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
let cargo_toml = cargo_manifest_dir.join("Cargo.toml");
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
let sha1_path = cargo_manifest_dir.join(".mini-dashboard.sha1");
let dashboard_dir = cargo_manifest_dir.join("mini-dashboard");
let sha1_path = out_dir.join(".mini-dashboard.sha1");
let dashboard_dir = out_dir.join("mini-dashboard");
let manifest = Manifest::from_path(cargo_toml).unwrap();