-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun.sh
executable file
·26 lines (20 loc) · 1.03 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Export AWS credentials from .env
export CUSTOM_AWS_ACCESS_KEY_ID=$(grep CUSTOM_AWS_ACCESS_KEY_ID .env | cut -d '=' -f2)
export CUSTOM_AWS_SECRET_ACCESS_KEY=$(grep CUSTOM_AWS_SECRET_ACCESS_KEY .env | cut -d '=' -f2)
export CUSTOM_AWS_REGION_NAME=$(grep CUSTOM_AWS_REGION_NAME .env | cut -d '=' -f2)
# Start litellm server
echo "Starting litellm server..."
nohup poetry run litellm --config litellm.config.yaml > nohup.litellm.out 2>&1 &
# Wait for litellm to start (adjust sleep time if needed)
sleep 15
# Start market scan process
echo "Starting market scan process..."
nohup poetry run python -m src.market_scan_process > nohup.market_scan.out 2>&1 &
# Start solve instances process
echo "Starting solve instances process..."
nohup poetry run python -m src.solve_instances_process > nohup.solve_instances.out 2>&1 &
echo "All services started. Check the following log files:"
echo "- nohup.litellm.out for LiteLLM logs"
echo "- nohup.market_scan.out for market scanning logs"
echo "- nohup.solve_instances.out for instance solving logs"