Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 569 Bytes

Deployment.md

File metadata and controls

34 lines (24 loc) · 569 Bytes

Backend

env

  • APP_DB_PASSWORD
  • APP_DB_HOST
  • APP_DB_PORT
  • APP_DB_DBNAME
# build
cargo build --release --exclude frontend --workspace

# run in production
cargo run --release --bin backend

Frontend

  1. push to GitHub
  2. GitHub Action build dist and push to dist branch
  3. Vercel will redeploy automatically

Minimize Rust Image Size

base binary: 8.4MB (profile=false) base binary: 3.8MB (profile=true)

FROM size
alpine 18.8MB
scratch 13.3MB

https://kerkour.com/rust-small-docker-image