mirror of
https://github.com/claude-did-this/claude-hub.git
synced 2026-02-14 19:30:02 +01:00
* fix: Improve production deployment configuration - Update default port from 3003 to 3002 for consistency - Make port configurable via environment variable in docker-compose - Add .env file loading support in start-api.sh - Optimize startup.sh for production (skip builds, expect pre-built dist) - Make Claude Code image build conditional on Dockerfile availability - Fix rate limiting configuration for proxy environments - Remove jest types from tsconfig (not needed in production) These changes improve deployment flexibility and production readiness. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix: Address PR review feedback - Fix port inconsistency: Change hardcoded 3003 to 3002 in src/index.ts - Fix security risk: Replace unsafe export command with set -a/source/set +a - Remove unnecessary Dockerfile.claudecode volume mount from docker-compose (The Dockerfile already copies all necessary files during build) These changes address all critical issues identified in the PR review. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
23 lines
572 B
Bash
Executable File
23 lines
572 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Load environment variables from .env file if it exists
|
|
if [ -f .env ]; then
|
|
set -a
|
|
source .env
|
|
set +a
|
|
fi
|
|
|
|
# Get port from environment or default to 3002
|
|
DEFAULT_PORT=${PORT:-3002}
|
|
|
|
# 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 |