init
This commit is contained in:
10
run.sh
Executable file
10
run.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# This script starts the FastAPI application using Gunicorn.
|
||||
|
||||
echo "Starting DocProcessor with Gunicorn..."
|
||||
|
||||
exec gunicorn -w 1 -k uvicorn.workers.UvicornWorker --forwarded-allow-ips='*' main:app -b 0.0.0.0:8000 &
|
||||
echo "Done"
|
||||
echo "Starting huey..."
|
||||
exec huey_consumer.py main.huey &
|
||||
echo "Done"
|
||||
Reference in New Issue
Block a user