From 6d86615f75e72ba8e251154d107c8f456db7370e Mon Sep 17 00:00:00 2001 From: Hemanta Pokharel Date: Thu, 9 Mar 2023 11:51:23 +0545 Subject: [PATCH] Use pm2 instead of screen --- .github/workflows/deployScript.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deployScript.sh b/.github/workflows/deployScript.sh index 9e7ecb3..84b0913 100644 --- a/.github/workflows/deployScript.sh +++ b/.github/workflows/deployScript.sh @@ -1,4 +1,4 @@ # Due to a bug in appleboy/ssh-action@master, some commands shows error and fails to execute. # So, running a bash file instead of commands -echo $1 > /opt/TorrentSeedr/TorrentSeedr/src/config.json && pkill -f torrentseedr.py ; source /opt/TorrentSeedr/venv/bin/activate && cd /opt/TorrentSeedr/TorrentSeedr && pip install -r requirements.txt && screen -dm python3 torrentseedr.py \ No newline at end of file +echo $1 > /opt/TorrentSeedr/TorrentSeedr/src/config.json ; source /opt/TorrentSeedr/venv/bin/activate && cd /opt/TorrentSeedr/TorrentSeedr && pip install -r requirements.txt && pm2 restart TorrentSeedr \ No newline at end of file