chore: Remove production Docker infrastructure and reorganize docs
Some checks failed
ParentFlow CI/CD Pipeline / Backend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Frontend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Security Scanning (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-app/maternal-app-backend dockerfile:Dockerfile.production name:backend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-web dockerfile:Dockerfile.production name:frontend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Development (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
Some checks failed
ParentFlow CI/CD Pipeline / Backend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Frontend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Security Scanning (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-app/maternal-app-backend dockerfile:Dockerfile.production name:backend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-web dockerfile:Dockerfile.production name:frontend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Development (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
- Remove production Docker Compose files (docker-compose.production.yml, docker-compose.prod-simple.yml) - Remove production Dockerfiles (backend and frontend) - Move implementation docs to docs/implementation-docs/ directory - Remove test scripts (test-embeddings.js, test-voice-*.js/sh) - Update ecosystem.config.js with production environment variables (CORS, JWT secrets, database config) - Add database connection pooling configuration - Update CORS configuration for production domains (parentflowapp.com) - Fix frontend dev server port configuration (3005) - Add PWA web push implementation plan documentation - Simplify health check endpoints (remove MongoDB/Redis specific checks) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
53
start-production.sh
Executable file
53
start-production.sh
Executable file
@@ -0,0 +1,53 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Start Production Servers Script
|
||||
# Ports: Backend 3020, Frontend 3030
|
||||
|
||||
echo "Starting ParentFlow Production Servers..."
|
||||
|
||||
# Kill any existing processes on the ports
|
||||
echo "Cleaning up existing processes..."
|
||||
lsof -ti:3020 | xargs kill -9 2>/dev/null
|
||||
lsof -ti:3030 | xargs kill -9 2>/dev/null
|
||||
sleep 2
|
||||
|
||||
# Start Backend on port 3020
|
||||
echo "Starting backend on port 3020..."
|
||||
cd /root/maternal-app/maternal-app/maternal-app-backend
|
||||
PORT=3020 API_PORT=3020 NODE_ENV=production nohup node dist/main.js > /root/maternal-app/logs/backend-prod.log 2>&1 &
|
||||
BACKEND_PID=$!
|
||||
echo "Backend started with PID: $BACKEND_PID"
|
||||
|
||||
# Start Frontend on port 3030
|
||||
echo "Starting frontend on port 3030..."
|
||||
cd /root/maternal-app/maternal-web
|
||||
PORT=3030 NODE_ENV=production nohup npm run start > /root/maternal-app/logs/frontend-prod.log 2>&1 &
|
||||
FRONTEND_PID=$!
|
||||
echo "Frontend started with PID: $FRONTEND_PID"
|
||||
|
||||
# Wait a moment for servers to start
|
||||
sleep 5
|
||||
|
||||
# Check if servers are running
|
||||
echo ""
|
||||
echo "Checking server status..."
|
||||
if lsof -i:3020 > /dev/null 2>&1; then
|
||||
echo "✅ Backend is running on port 3020"
|
||||
else
|
||||
echo "❌ Backend failed to start on port 3020"
|
||||
fi
|
||||
|
||||
if lsof -i:3030 > /dev/null 2>&1; then
|
||||
echo "✅ Frontend is running on port 3030"
|
||||
else
|
||||
echo "❌ Frontend failed to start on port 3030"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Production servers started!"
|
||||
echo "Backend: http://localhost:3020"
|
||||
echo "Frontend: http://localhost:3030"
|
||||
echo ""
|
||||
echo "To check logs:"
|
||||
echo " Backend: tail -f /root/maternal-app/logs/backend-prod.log"
|
||||
echo " Frontend: tail -f /root/maternal-app/logs/frontend-prod.log"
|
||||
Reference in New Issue
Block a user