-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy_remote_config.sh
More file actions
executable file
·52 lines (40 loc) · 1.43 KB
/
deploy_remote_config.sh
File metadata and controls
executable file
·52 lines (40 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# Firebase Remote Config Deployment Script
# Bu script, Amazon Rewards ve Points sistemi için Remote Config parametrelerini yükler
set -e
echo "🚀 Firebase Remote Config Deployment Başlatılıyor..."
echo ""
# Firebase CLI kontrolü
if ! command -v firebase &> /dev/null; then
echo "❌ Firebase CLI yüklü değil!"
echo " Yüklemek için: npm install -g firebase-tools"
exit 1
fi
echo "✅ Firebase CLI bulundu"
echo ""
# Firebase login kontrolü
if ! firebase projects:list &> /dev/null; then
echo "⚠️ Firebase'e giriş yapılmamış"
echo " Giriş yapmak için: firebase login"
exit 1
fi
echo "✅ Firebase'e giriş yapılmış"
echo ""
# Mevcut Remote Config'i yedekle
echo "📦 Mevcut Remote Config yedekleniyor..."
firebase remoteconfig:get -o remote_config_backup_$(date +%Y%m%d_%H%M%S).json || echo "⚠️ Yedekleme başarısız (devam ediliyor...)"
echo ""
# Yeni Remote Config'i yükle
echo "📤 Yeni Remote Config yükleniyor..."
echo " Dosya: firebase_remote_config_amazon_rewards_points.json"
echo ""
firebase remoteconfig:set firebase_remote_config_amazon_rewards_points.json
echo ""
echo "✅ Remote Config başarıyla yüklendi!"
echo ""
echo "📋 Sonraki Adımlar:"
echo " 1. Firebase Console'da Remote Config'i kontrol edin"
echo " 2. 'Publish changes' butonuna tıklayın"
echo " 3. Değişiklikler 1 saat içinde uygulamaya yansıyacak"
echo ""
echo "🎉 Tamamlandı!"