Skip to content

Commit

Permalink
chore: fix CI snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgehermo9 committed Jan 24, 2025
1 parent 18de238 commit 13a76d6
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ FROM rust:1.83.0-slim as builder
WORKDIR /usr/src/

COPY . .

RUN cargo build --release

FROM debian:bookworm-slim
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ FROM rust:1.83.0-slim as builder
WORKDIR /usr/src/

COPY . .

RUN cargo build --release

FROM debian:bookworm-slim
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ FROM rust:1.83.0-slim as builder
WORKDIR /usr/src/

COPY . .

RUN cargo build --release

FROM debian:bookworm-slim
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ FROM rust:1.83.0-slim as builder
WORKDIR /usr/src/

COPY . .

RUN cargo build --release

FROM debian:bookworm-slim
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ expression: "fs::read_to_string(tree_fs.root.join(\"src\").join(\"bin\").join(\"
use loco_rs::boot::{create_app, StartMode};
use loco_rs::environment::Environment;
use tester::app::App;
use migration::Migrator;

use shuttle_runtime::DeploymentMetadata;

#[shuttle_runtime::main]
async fn main(
#[shuttle_shared_db::Postgres] conn_str: String,

#[shuttle_runtime::Metadata] meta: DeploymentMetadata,
) -> shuttle_axum::ShuttleAxum {
std::env::set_var("DATABASE_URL", conn_str);

let environment = match meta.env {
shuttle_runtime::Environment::Local => Environment::Development,
shuttle_runtime::Environment::Deployment => Environment::Production,
Expand All @@ -23,7 +23,7 @@ async fn main(
.load()
.expect("Failed to load configuration from the environment");

let boot_result = create_app::<App, Migrator>(StartMode::ServerOnly, &environment, config)
let boot_result = create_app::<App>(StartMode::ServerOnly, &environment, config)
.await
.unwrap();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ expression: "fs::read_to_string(tree_fs.root.join(\"Cargo.toml\")).expect(\"carg
[dependencies]
shuttle-axum = "0.51.0"
shuttle-runtime = { version = "0.51.0", default-features = false }
shuttle-shared-db = { version = "0.51.0", features = ["postgres"] }


[[bin]]
Expand Down

0 comments on commit 13a76d6

Please sign in to comment.