start.sh 327 B

1234567891011121314
  1. #!/bin/bash
  2. echo "Starting Celery in background..."
  3. celery_log="/opt/maxkb-app/logs/celery.log"
  4. touch "$celery_log"
  5. nohup python main.py dev celery >> "$celery_log" 2>&1 &
  6. echo "Celery started in background, PID: $!"
  7. echo "Waiting for services to initialize..."
  8. sleep 5
  9. echo "Starting Web server..."
  10. python main.py dev web