Skip to content

Commit

Permalink
feat(cargo-shuttle): beta deploy endpoint (#1777)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaro00 authored May 21, 2024
1 parent baeddf8 commit 6ef0312
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cargo-shuttle/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,15 @@ impl ShuttleApiClient {
project: &str,
deployment_req: DeploymentRequestBeta,
) -> Result<deployment::EcsResponse> {
let path = format!("/projects/{project}");
let path = format!("/projects/{project}/deployments");
let deployment_req = rmp_serde::to_vec(&deployment_req)
.context("serialize DeploymentRequest as a MessagePack byte vector")?;

let url = format!("{}{}", self.api_url, path);
let mut builder = self.client.put(url);
let mut builder = self.client.post(url);
builder = self.set_auth_bearer(builder);

builder
.header("Transfer-Encoding", "chunked")
.body(deployment_req)
.send()
.await
Expand Down

0 comments on commit 6ef0312

Please sign in to comment.