bun-frontend-deploy-sudo-path

Community

Fix sudo path errors for Bun frontend deployments.

Authorfreedomw1987
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill resolves the common issue where a Bun frontend build completes successfully and outputs files to the dist/ directory, but subsequent sudo cp or sudo rsync deployment commands fail with "No such file or directory" errors, or the dist directory appears empty after deployment, caused by sudo not preserving shell tilde (~) path expansion.

Core Features & Use Cases

  • Root Cause Explanation: Clearly identifies why sudo mangles tilde-based paths and how default terminal working directories impact path resolution.
  • Correct Deployment Pattern: Provides step-by-step guidance for using absolute paths in sudo commands to reliably copy built frontend assets to target system directories.
  • Verification Checklist: Includes post-deployment checks to confirm assets are correctly placed before marking the deployment as successful.
  • Use Case: Frontend developers or DevOps engineers deploying Bun-built static sites or single-page applications to web server directories like /var/www/html that require sudo access.

Quick Start

Use this skill to fix sudo path errors when deploying your completed Bun frontend build to a target server directory.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: bun-frontend-deploy-sudo-path
Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#bun-frontend-deploy-sudo-path

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.