Skip to content

Commit

Permalink
cicd: update restart-app .sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Nov 26, 2024
1 parent 4c40a2e commit 748fd9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 6 additions & 2 deletions restart-app.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
PID=$(ps | grep app.py | grep -v grep | awk '{print $1}')
echo $PID
kill $PID
if [ -z "$PID" ]; then
echo "No process to kill"
else
echo "Killing process $PID"
kill $PID
echo "Starting app.py..."
nohup python app.py &
3 changes: 0 additions & 3 deletions web_viewer/device_manager.py

This file was deleted.

0 comments on commit 748fd9e

Please sign in to comment.