Skip to content

Commit

Permalink
remove migration db
Browse files Browse the repository at this point in the history
  • Loading branch information
ququzone committed Nov 9, 2023
1 parent 29f3576 commit af2cfff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ FROM rust:${RUST_VERSION}-slim-bullseye AS build
ARG APP_NAME
WORKDIR /app

ENV DATABASE_URL=${DATABASE_URL}

RUN apt-get update \
&& apt-get install pkg-config libssl-dev -y \
&& apt-get clean
Expand Down
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ async fn main() {
signer: env::var("SIGNER").expect("SIGNER must be set"),
};

sqlx::migrate!()
.run(&context.db)
.await
.expect("migrate database error");

tokio::spawn(async move {
let smtp_password = env::var("SMTP_PASSWORD").expect("SMTP_PASSWORD must be set");
let smtp_user = env::var("SMTP_USER").expect("SMTP_USER must be set");
Expand Down

0 comments on commit af2cfff

Please sign in to comment.