Skip to content

Commit

Permalink
🐛 fix(deploy.yml): fix the command to kill existing bot processes by …
Browse files Browse the repository at this point in the history
…using the correct screen session name

✨ feat(deploy.yml): update the screen session name for starting the bot to improve clarity and consistency
  • Loading branch information
skullzarmy committed Sep 20, 2023
1 parent 8d9a355 commit f3987e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
ssh -o StrictHostKeyChecking=no -i deploy_key $USERNAME@$HOST "cd /home/skullzarmy/chatGPToot && npm install" && echo "NPM install successful"
# Kill Existing Bot Process
ssh -o StrictHostKeyChecking=no -i deploy_key $USERNAME@$HOST "pkill -f 'node app/chatgptoot.js' || true" && echo "Attempted to kill existing bot processes"
ssh -o StrictHostKeyChecking=no -i deploy_key $USERNAME@$HOST "pkill -f 'screen -S chatgptoot_bot_session -X quit || true" && echo "Attempted to kill existing bot processes"
# Start Bot
ssh -o StrictHostKeyChecking=no -i deploy_key $USERNAME@$HOST "cd /home/skullzarmy/chatGPToot && screen -dmS bot_session node app/chatgptoot.js > logs/bot-log.log 2>&1" && echo "Bot started"
ssh -o StrictHostKeyChecking=no -i deploy_key $USERNAME@$HOST "cd /home/skullzarmy/chatGPToot && screen -dmS chatgptoot_bot_session node app/chatgptoot.js > logs/bot-log.log 2>&1" && echo "Bot started"
# Remove Deploy Key
echo "Removing deploy key"
Expand Down

0 comments on commit f3987e0

Please sign in to comment.