mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 09:16:22 +02:00
feat: frontend docker to use nextjs production build
- Damn this made things fast af.
This commit is contained in:
parent
420e2b62eb
commit
d5ccced6b9
7 changed files with 103 additions and 41 deletions
|
|
@ -11,17 +11,23 @@ cleanup() {
|
|||
|
||||
trap cleanup SIGTERM SIGINT
|
||||
|
||||
echo "Starting Celery Beat..."
|
||||
celery -A app.celery_app beat --loglevel=info &
|
||||
celery_beat_pid=$!
|
||||
echo "Starting FastAPI Backend..."
|
||||
python main.py &
|
||||
backend_pid=$!
|
||||
|
||||
# Wait a bit for backend to initialize
|
||||
sleep 5
|
||||
|
||||
echo "Starting Celery Worker..."
|
||||
celery -A app.celery_app worker --loglevel=info --concurrency=1 --pool=solo &
|
||||
celery_worker_pid=$!
|
||||
|
||||
echo "Starting FastAPI Backend..."
|
||||
python main.py --reload &
|
||||
backend_pid=$!
|
||||
# Wait a bit for worker to initialize
|
||||
sleep 3
|
||||
|
||||
echo "Starting Celery Beat..."
|
||||
celery -A app.celery_app beat --loglevel=info &
|
||||
celery_beat_pid=$!
|
||||
|
||||
echo "All services started. PIDs: Backend=$backend_pid, Worker=$celery_worker_pid, Beat=$celery_beat_pid"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue