Fix: rsync → cp in deploy.sh, add admin scripts, CORS dev mode, .env.example

This commit is contained in:
salvacybersec
2025-11-11 05:18:34 +03:00
parent 3f89ed2158
commit 9943f0cf1f

View File

@@ -164,8 +164,17 @@ install_project() {
if [[ "$CURRENT_DIR" != "$INSTALL_DIR" ]]; then if [[ "$CURRENT_DIR" != "$INSTALL_DIR" ]]; then
print_info "Dosyalar $INSTALL_DIR dizinine kopyalanıyor..." 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 fi
else else
print_error "Proje dosyaları bulunamadı!" print_error "Proje dosyaları bulunamadı!"