Compile Meilisearch or run the dedicated binary file

This commit is contained in:
Kerollmops
2024-12-11 14:57:07 +01:00
parent f8ba112f66
commit 04a62d2b97
3 changed files with 28 additions and 13 deletions

View File

@ -37,17 +37,8 @@ pub async fn start(
master_key: Option<&str>,
workload: &Workload,
asset_folder: &str,
mut command: tokio::process::Command,
) -> anyhow::Result<tokio::process::Child> {
let mut command = tokio::process::Command::new("cargo");
command
.arg("run")
.arg("--release")
.arg("-p")
.arg("meilisearch")
.arg("--bin")
.arg("meilisearch")
.arg("--");
command.arg("--db-path").arg("./_xtask_benchmark.ms");
if let Some(master_key) = master_key {
command.arg("--master-key").arg(master_key);