This commit is contained in:
2025-06-27 20:41:04 +02:00
parent a843208422
commit e444d0d7ae
3 changed files with 73 additions and 5 deletions

22
run-local-backend.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# This script builds and runs the Rust backend locally, similar to the Docker container.
# Usage: ./run-local-backend.sh [args for markdown_backend]
# AnalSex with the frontend ( Cursor Autocompletion xD )
set -e
# Set environment variables as in Docker (customize as needed)
export BLOG_OWNER=${BLOG_OWNER:-"rattatwinko"}
# Build the backend in release mode
cd "$(dirname "$0")/markdown_backend"
echo "Building Rust backend..."
cargo build --release
# Run the backend with any arguments passed to the script
cd target/release
echo "Running: ./markdown_backend $@"
./markdown_backend "$@"
npm run dev ## start the fuckass frontend