Update run scripts for executable env
Make run scripts executable and use the specified Python path for uvicorn.
This commit is contained in:
0
client/run.sh
Normal file → Executable file
0
client/run.sh
Normal file → Executable file
4
server/run.sh
Normal file → Executable file
4
server/run.sh
Normal file → Executable file
@@ -11,7 +11,5 @@ if lsof -ti tcp:"${PORT}" >/dev/null 2>&1; then
|
|||||||
sleep 1
|
sleep 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
python -m pip install -r requirements.txt
|
PORT="${PORT}" nohup /home/dsyoon/workspace/miniconda3/envs/ncue/bin/python -m uvicorn server.main:app --host 0.0.0.0 --port "${PORT}" > server.log 2>&1 &
|
||||||
|
|
||||||
PORT="${PORT}" nohup python -m uvicorn server.main:app --host 0.0.0.0 --port "${PORT}" > server.log 2>&1 &
|
|
||||||
echo "Server started (PID: $!). Logs: server.log"
|
echo "Server started (PID: $!). Logs: server.log"
|
||||||
|
|||||||
Reference in New Issue
Block a user