Files
claude-hub/scripts/runtime/start-api.sh
Jonathan Flatt fdf255cbec feat: remove JavaScript files replaced by TypeScript equivalents
- Remove 11 JavaScript source files that have been migrated to TypeScript
- Update package.json scripts to reference TypeScript files
- Update documentation and scripts to reference .ts instead of .js
- Keep JavaScript files without TypeScript equivalents (chatbot-related)

This completes the TypeScript migration for core application files while
maintaining backward compatibility for components not yet migrated.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-28 15:01:03 +00:00

16 lines
458 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 dist/index.js