Skip to content

Vite Development Server Tools

Streamlined Vite development server management script for web development projects.

Features

  • Server Management: Start, stop, and check Vite development servers
  • Port Configuration: Flexible port assignment and conflict detection
  • Process Monitoring: Track running Vite processes and server status
  • Project Directory Support: Work from any project directory
  • Network Connectivity: Check local server accessibility

Available Commands

Server Operations

  • start [port] [project_dir] - Start Vite development server
  • check [port] - Check if server is running on specified port
  • stop [port] - Stop server running on specific port
  • help - Display usage information

Default Configuration

  • Default Port: 5173 (Vite standard)
  • Default Directory: Current working directory
  • Protocol: HTTP (localhost)

Usage Examples

# Start server on default port (5173)
./docs/actions/dev-server-vite-actions.sh start

# Start server on custom port
./docs/actions/dev-server-vite-actions.sh start 3000

# Start server in specific project directory
./docs/actions/dev-server-vite-actions.sh start 3000 /path/to/project

# Check server status
./docs/actions/dev-server-vite-actions.sh check

# Stop server
./docs/actions/dev-server-vite-actions.sh stop

File Location

  • Vite Development Server Script: docs/actions/dev-server-vite-actions.sh

Requirements

  • Node.js and npm installed
  • Vite-based project with package.json
  • npm run dev script configured
  • lsof and curl utilities (for port checking)