hyperdashi-server/.envrc
2025-07-05 11:50:50 +09:00

29 lines
No EOL
715 B
Bash

# Automatically load the nix environment
use flake
# Load environment variables from .env file if it exists
dotenv_if_exists
# Set development environment variables
export DATABASE_URL="sqlite://hyperdashi.db"
export RUST_LOG="debug"
export RUST_BACKTRACE="1"
# Server configuration
export SERVER_HOST="127.0.0.1"
export SERVER_PORT="8081"
# Storage configuration
export STORAGE_TYPE="local"
export STORAGE_MAX_FILE_SIZE_MB="10"
export LOCAL_STORAGE_PATH="./uploads"
# Rust development settings
export CARGO_TARGET_DIR="target"
export RUSTFLAGS="--deny warnings"
# Create necessary directories
mkdir -p uploads
echo "Development environment loaded!"
echo "Run 'nix run .#dev' to start the development server"