Skip to content

Commit 3743595

Browse files
committed
fix deploy 3
1 parent f7a11c1 commit 3743595

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/deploy.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ jobs:
5959
ssh -o StrictHostKeyChecking=no "$SERVER_USER@$SERVER_IP" "echo 'SSH connection successful'"
6060
6161
# Déploiement avec rsync
62-
6362
rsync -avz --no-perms --no-times --delete dist/ "$SERVER_USER@$SERVER_IP:$SERVER_PATH"
64-
65-
sudo chown -R www-data:www-data /var/www/pcoundia.com
66-
6763
64+
# Changer les permissions directement sur le serveur
65+
ssh "$SERVER_USER@$SERVER_IP" "sudo chown -R www-data:www-data /var/www/pcoundia.com"

0 commit comments

Comments
 (0)