8 lines
365 B
Bash
8 lines
365 B
Bash
#!/bin/bash
|
|
cd /volume1/homes/Master/App/Sliding/python-pptx
|
|
pkill -f "uvicorn webapp_sliding:app" 2>/dev/null; fuser -k 8769/tcp 2>/dev/null
|
|
sleep 2
|
|
source venv/bin/activate
|
|
uvicorn webapp_sliding:app --host 127.0.0.1 --port 8769 >> /volume1/homes/Master/App/Sliding/python-pptx/webapp.log 2>&1 &
|
|
echo $! > /volume1/homes/Master/App/Sliding/python-pptx/webapp.pid
|