Skip to content

Commit

Permalink
fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
donneypr committed Dec 19, 2024
1 parent da81ad2 commit 5fca0c2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ jobs:
echo -e "Host github.com\n\tHostName github.com\n\tIdentityFile /home/ubuntu/.ssh/temp_ssh/id_ed25519\n\tIdentitiesOnly yes" > /home/ubuntu/.ssh/config
chmod 600 /home/ubuntu/.ssh/config
echo "Pulling latest code:"
cd /home/ubuntu/xtwitter_bot
git pull origin main || echo "Git pull failed"
GIT_SSH_COMMAND="ssh -i /home/ubuntu/.ssh/temp_ssh/id_ed25519 -o IdentitiesOnly=yes" git pull origin main || echo "Git pull failed"
echo "Activating virtual environment:"
source venv/bin/activate
echo "Restarting bot:"
screen -ls | grep "phil_bot" && screen -S phil_bot -X quit || true
screen -dmS phil_bot venv/bin/python3 xtwitter_bot.py > bot.log 2>&1
echo "Active screen sessions:"
screen -ls
screen -ls

0 comments on commit 5fca0c2

Please sign in to comment.