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ı!"