added script for starting and stopping the service

This commit is contained in:
Dejan Rožič 2026-01-07 06:27:44 +01:00
parent dca4ab683a
commit fb632f0646
3 changed files with 9 additions and 0 deletions

1
killservice.sh Executable file
View file

@ -0,0 +1 @@
sudo pkill -f "streamlit run main.py"

7
runscript.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
cd "$(dirname "$0")"
source venv/bin/activate
streamlit run main.py --server.port 8503 --server.address 0.0.0.0

View file

@ -0,0 +1 @@
nohup ./runscript.sh > streamlit.log 2>&1 &