init local package repo
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
# ═══════════════════════════════════════════════════════════════
|
||||
# Venture Fund CRM — Start Script
|
||||
# ═══════════════════════════════════════════════════════════════
|
||||
#
|
||||
# Usage:
|
||||
# ./start.sh # Start on default port 8080
|
||||
# ./start.sh 3000 # Start on custom port
|
||||
# CRM_HOST=0.0.0.0 ./start.sh # Bind to all interfaces (for LAN access)
|
||||
#
|
||||
# ═══════════════════════════════════════════════════════════════
|
||||
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
PORT="${1:-${CRM_PORT:-8080}}"
|
||||
|
||||
export CRM_PORT="$PORT"
|
||||
export CRM_HOST="${CRM_HOST:-0.0.0.0}"
|
||||
|
||||
echo ""
|
||||
echo " ╔══════════════════════════════════════════╗"
|
||||
echo " ║ Venture Fund CRM ║"
|
||||
echo " ╚══════════════════════════════════════════╝"
|
||||
echo ""
|
||||
echo " Starting server on port $PORT..."
|
||||
echo " Local: http://localhost:$PORT"
|
||||
echo " Network: http://$(hostname -I 2>/dev/null | awk '{print $1}' || echo 'your-ip'):$PORT"
|
||||
echo ""
|
||||
echo " Press Ctrl+C to stop"
|
||||
echo ""
|
||||
|
||||
cd "$SCRIPT_DIR"
|
||||
python3 backend/server.py
|
||||
Reference in New Issue
Block a user