blog/backend
SquidSpirit 357d3fc090
All checks were successful
Frontend CI / build (push) Successful in 1m36s
PR Title Check / pr-title-check (pull_request) Successful in 13s
BLOG-59 feat: enhance deployment workflow and backend server configuration
- Updated deployment.yaml to specify separate build and push steps for frontend and backend.
- Added Dockerfile for backend service to define build process.
- Modified main.rs to bind the server to all network interfaces (0.0.0.0) instead of localhost.
2025-07-23 00:54:10 +08:00
..

Backend

Development

SQL Migration

  1. Install sqlx

    cargo install sqlx-cli
    
  2. Run migration

    sqlx migrate run
    

Run Project

  1. Prepare for sql schema setup

    cargo sqlx prepare --workspace
    
  2. Run the server

    RUST_LOG=debug cargo run
    
  3. (Optional) Hot restart

    1. Install watchexec

    2. Run the server with watchexec

      RUST_LOG=debug watchexec -e rs -r 'cargo run'