Files
claude-hub/scripts/runtime/start-api.sh
Jonathan Flatt 4cdad828c4 Reorganize scripts into structured directory layout and consolidate functionality
This commit reorganizes all scripts in the repository into a more structured directory layout for better maintainability:
- Categorizes scripts by functionality (setup, build, aws, runtime, security, utils)
- Organizes test scripts into logical categories
- Consolidates redundant scripts with unified interfaces
- Adds backward compatibility wrappers
- Adds detailed SCRIPTS.md documentation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-21 00:19:07 +00:00

16 lines
457 B
Bash
Executable File

#!/bin/bash
# Get port from environment or default to 3003
DEFAULT_PORT=${PORT:-3003}
# Kill any processes using the port
echo "Checking for existing processes on port $DEFAULT_PORT..."
pid=$(lsof -ti:$DEFAULT_PORT)
if [ ! -z "$pid" ]; then
echo "Found process $pid using port $DEFAULT_PORT, killing it..."
kill -9 $pid
fi
# Start the server with the specified port
echo "Starting server on port $DEFAULT_PORT..."
PORT=$DEFAULT_PORT node src/index.js