Search Results: Found 3
The Ultimate Casdoor Docker Deployment Guide: Master Production-Ready Setup with a Single Command
2026-02-28 DP

This article provides a comprehensive `docker run` command for deploying Casdoor (casbin/casdoor:v2.117.0). We will break down each parameter in detail, covering everything from port mapping and data persistence to environment variable configuration. Whether you are a beginner or an experienced developer, this guide will help you quickly and securely set up a production-grade Casdoor authentication service. It also includes pre-deployment preparations, post-deployment management tips, and expert advice from DP@lib00.

Composer Script Not Running? Unveiling the `post-install-cmd` Trap and the Ultimate Solution
2025-12-23 DP

Have you ever run `composer install` only to find that your `post-install-cmd` scripts didn't execute as expected? This often happens in projects with no third-party dependencies. This article dives into the root cause of this issue and provides the ultimate solution using `post-autoload-dump`. Learn how to reliably automate configuration file copying and project initialization tasks, regardless of dependencies, using an elegant and maintainable standalone PHP script.

Nginx vs. Vite: The Smart Way to Handle Asset Path Prefixes in SPAs
2025-12-11 DP

When deploying a Single Page Application (SPA) built with Vite, URL prefixes like /zh/ for internationalization often cause 404 errors for static assets (JS/CSS). This article explores two powerful solutions: first, a quick fix using an Nginx rewrite rule to correct the paths, and second, an advanced approach of setting up a dedicated static domain for content separation and performance optimization. Whether you need a quick fix or a professional deployment architecture, this guide provides clear instructions and code examples.