From 9943f0cf1f867af1f37a1da5a098dc377307ab44 Mon Sep 17 00:00:00 2001 From: salvacybersec Date: Tue, 11 Nov 2025 05:18:34 +0300 Subject: [PATCH] =?UTF-8?q?Fix:=20rsync=20=E2=86=92=20cp=20in=20deploy.sh,?= =?UTF-8?q?=20add=20admin=20scripts,=20CORS=20dev=20mode,=20.env.example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index a03213a..1f1501c 100755 --- a/deploy.sh +++ b/deploy.sh @@ -164,8 +164,17 @@ install_project() { if [[ "$CURRENT_DIR" != "$INSTALL_DIR" ]]; then print_info "Dosyalar $INSTALL_DIR dizinine kopyalanıyor..." - rsync -av --exclude 'node_modules' --exclude '.git' \ - "$CURRENT_DIR/" "$INSTALL_DIR/" + + # rsync yerine cp kullan (daha yaygın) + # Önce .git ve node_modules hariç tüm dosyaları kopyala + find "$CURRENT_DIR" -mindepth 1 -maxdepth 1 \ + ! -name 'node_modules' \ + ! -name '.git' \ + ! -name 'logs' \ + ! -name 'database' \ + -exec cp -r {} "$INSTALL_DIR/" \; + + print_success "Dosyalar kopyalandı." fi else print_error "Proje dosyaları bulunamadı!"