Fix: rsync → cp in deploy.sh, add admin scripts, CORS dev mode, .env.example
This commit is contained in:
13
deploy.sh
13
deploy.sh
@@ -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ı!"
|
||||||
|
|||||||
Reference in New Issue
Block a user