Skip to content

Commit

Permalink
fix: fixed placement of standalone feature in deployment command
Browse files Browse the repository at this point in the history
Fixes #92.
  • Loading branch information
arctic-hen7 committed Dec 14, 2021
1 parent f36d88f commit 7609ee1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/perseus-cli/src/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,18 @@ fn build_server(
// This sets Cargo to tell us everything, including the executable path to the server
"{} build --message-format json {} {}",
env::var("PERSEUS_CARGO_PATH").unwrap_or_else(|_| "cargo".to_string()),
if is_release { "--release" } else { "" },
// Enable the appropriate integration
format!(
"--features integration-{} {} --no-default-features",
integration.to_string(),
// We'll also handle whether or not it's standalone because that goes under the `--features` flag
if is_standalone { "standalone" } else { "" }
)
if is_standalone {
"--features standalone"
} else {
""
}
),
if is_release { "--release" } else { "" },
)],
&sb_target,
&sb_spinner,
Expand Down

0 comments on commit 7609ee1

Please sign in to comment.