Skip to content

Commit

Permalink
fix: ci envs
Browse files Browse the repository at this point in the history
  • Loading branch information
javascriptizer1 committed Feb 3, 2025
1 parent 83234fa commit 3d13f43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/gymnote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,15 @@ jobs:
- name: Copy migrations to VPS
run: |
scp -i deploy_key.pem -o StrictHostKeyChecking=no -r migrations $VPS_USER@$VPS_HOST:/home/$VPS_USER/apps/gymnote/migrations
ssh -i deploy_key.pem -o StrictHostKeyChecking=no $VPS_USER@$VPS_HOST << 'EOF'
ssh -i deploy_key.pem -o StrictHostKeyChecking=no $VPS_USER@$VPS_HOST << EOF
export VPS_USER=$VPS_USER
export VPS_HOST=$VPS_HOST
if [ -d "/root/apps/gymnote/migrations" ]; then
echo "Removing old migrations directory"
rm -rf /root/apps/gymnote/migrations
fi
sudo mv /home/$VPS_USER/apps/gymnote/migrations /root/apps/gymnote/migrations
EOF
Expand Down

0 comments on commit 3d13f43

Please sign in to comment.