# How to Stop the Old PunimTag Server

## Quick Instructions

### Option 1: Kill the Process (Already Done)
The old server has been stopped. If you need to do it manually:

```bash
# Find the process
lsof -i :3000

# Kill it (replace PID with actual process ID)
kill <PID>
```

### Option 2: Find and Stop All PunimTag Processes

```bash
# Find all PunimTag processes
ps aux | grep punimtag | grep -v grep

# Kill the frontend (Vite) process
pkill -f "vite.*punimtag"

# Or kill by port
lsof -ti :3000 | xargs kill
```

### Option 3: Stop from Terminal Where It's Running

If you have the terminal open where the old server is running:
- Press `Ctrl+C` to stop it

## Start the New Photo Viewer

After stopping the old server, start the new one:

```bash
cd /home/ladmin/Code/punimtag-viewer
npm run dev
```

The new server will start on http://localhost:3000

## Check What's Running

```bash
# Check what's on port 3000
lsof -i :3000

# Check all Node processes
ps aux | grep node | grep -v grep
```

## If Port 3000 is Still Busy

If port 3000 is still in use, you can:

1. **Use a different port for the new viewer:**
   ```bash
   PORT=3001 npm run dev
   ```
   Then open http://localhost:3001

2. **Or kill all processes on port 3000:**
   ```bash
   lsof -ti :3000 | xargs kill -9
   ```





