Skip to content

Commit

Permalink
Use pm2 instead of screen
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantapkh committed Mar 9, 2023
1 parent 0985b33 commit 6d86615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deployScript.sh
Original file line number Diff line number Diff line change
@@ -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
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

0 comments on commit 6d86615

Please sign in to comment.