Ir al contenido principal

Entradas

Mostrando entradas de marzo, 2026

Zero Ops on Mac Mini M4: Native CI/CD for C# APIs

Advanced DevOps Guide Zero Ops on Mac Mini M4: Native CI/CD for C# APIs Launchd Agents Automated Deploy Git-Driven Transforming your Mac Mini into a self-healing, auto-deploying production server. "The goal is simple: Git Push and forget. No manual terminals, no complex Docker layers—just pure macOS native resilience." 1 The Core: Deployment Script We create a dedicated deploy.sh script. This "heart" of the system handles compiling the ARM64 binary and restarting the service. Script Location: ~/code/csharp/be-real-doctor-api/deploy.sh #!/bin/bash # 1. Explicitly define PATH so Launchd can find git and dotnet export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet" PROJECT_DIR="/Users/ismael/code/csharp/repo-name" PUBLISH_DIR="$PROJECT_DIR/src/publish" ...

Deploying C# 8.0 on Mac Mini M4: High-Performance Setup

Full-Stack Deployment Guide Deploying C# 8.0 on Mac Mini M4: High-Performance Setup Apple Silicon M4 .NET 8.0 Ollama AI Optimizing 16GB RAM and M4 architecture for high-performance API delivery. "The Mac Mini M4 is not just a desktop; it's a powerhouse for C# developers , allowing local LLMs and APIs to run with zero thermal throttling." 1 Environment Variables Configuration To ensure your API connects to Ollama and other local services persistently, you must configure the system environment by editing your .zshrc file. Step-by-step Setup: 1. Open the editor: nano ~/.zshrc 2. Paste these lines at the end of the file: export OLLAMA_HOST="http://localhost:11434" export ASPNETCORE_ENVIRONMENT="Development" 3. Save ( Ctrl+O , Enter ) and Exit ( Ctrl...