Skip to content
Back to skills

Local Dev Server

ASecurity

PM2-based local development server management for Empathy Ledger. Handles port conflicts and auto-restart.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 9, 2026
devopsbashtestingdebuggingapidatabase

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill local-dev-server --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Local Dev Server?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Local Dev Server
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-local-dev-server/badge)](https://www.skillsdirectory.com/skills/majiayu000-local-dev-server)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: local-dev-server
description: PM2-based local development server management for Empathy Ledger. Handles port conflicts and auto-restart.
---

# Local Dev Server

PM2-based server management for reliable local development.

## When to Use
- Starting/stopping dev server
- "Address already in use" errors
- Server crashes and needs restart
- Testing API endpoints

## Quick Commands
```bash
# Start server (port 3030)
pm2 start npm --name "empathy-ledger" -- run dev

# Restart after code changes
pm2 restart empathy-ledger

# View logs
pm2 logs empathy-ledger

# Stop server
pm2 stop empathy-ledger
```

## Fix Port Conflicts
```bash
# Kill process on port and restart
lsof -ti :3030 | xargs kill -9
pm2 start npm --name "empathy-ledger" -- run dev
```

## ACT Ecosystem
```bash
# Start all projects
/Users/benknight/act-global-infrastructure/deployment/scripts/deploy-act-ecosystem.sh start

# Restart all
/Users/benknight/act-global-infrastructure/deployment/scripts/deploy-act-ecosystem.sh restart

# Stop all
/Users/benknight/act-global-infrastructure/deployment/scripts/deploy-act-ecosystem.sh stop
```

## PM2 vs npm run dev
- **Use PM2**: Auto-restart, centralized logs, multi-project
- **Use npm run dev**: Quick testing, active debugging

## Reference Files
| Topic | File |
|-------|------|
| Full PM2 reference | `refs/pm2-commands.md` |

## Related Skills
- `deployment-workflow` - Production deployment
- `supabase-connection` - Database setup

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.