This commit is contained in:
13
api/run.sh
Normal file
13
api/run.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Starting Uvicorn..."
|
||||
uvicorn main:app --host 0.0.0.0 --port 8000 &
|
||||
|
||||
echo "Starting Indexer daemon..."
|
||||
python indexer.py &
|
||||
|
||||
# Wait for any process to exit
|
||||
wait -n
|
||||
|
||||
# Exit with status of process that exited first
|
||||
exit $?
|
||||
Reference in New Issue
Block a user