Ported the project from sqlite to postgres
This commit is contained in:
parent
d397b5c1ed
commit
29c1fc8f82
23 changed files with 566 additions and 409 deletions
|
@ -25,6 +25,9 @@ RUN cargo build --target x86_64-unknown-linux-musl --release
|
|||
RUN rm src/*.rs
|
||||
ADD server /build-container
|
||||
|
||||
# Make sure sqlx reads from .sqlx directory
|
||||
ENV SQLX_OFFLINE true
|
||||
|
||||
RUN cargo build --target x86_64-unknown-linux-musl --release
|
||||
|
||||
# Final stage, copy the server binary and the frontend build
|
||||
|
|
|
@ -22,6 +22,9 @@ RUN cargo build --target x86_64-unknown-linux-musl
|
|||
RUN rm src/*.rs
|
||||
ADD server /build-container
|
||||
|
||||
# Make sure sqlx reads from .sqlx directory
|
||||
ENV SQLX_OFFLINE true
|
||||
|
||||
# Note that '--release' is missing here, so we build in debug mode
|
||||
RUN cargo build --target x86_64-unknown-linux-musl
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue