Update: 2026-05-14 19:26:32

This commit is contained in:
Hamza-Ayed
2026-05-14 19:26:32 +03:00
parent 8272065938
commit 22433b040e
431 changed files with 17953 additions and 11833 deletions

View File

@@ -1,31 +1,26 @@
#!/bin/bash
# Jordan Bot - Deployment Script
# هذا السكربت يقوم برفع الكود إلى مستودع الـ Git الخاص بك
# This script automates the process of pushing changes to your Git repository.
echo "🚀 البدء في عملية الرفع..."
echo "🚀 Starting deployment process..."
# 1. إضافة كافة التغييرات
# 1. Add all changes
git add .
# 2. طلب رسالة الـ Commit من المستخدم
echo "📝 أدخل وصفاً للتغييرات (Commit Message):"
read commit_msg
if [ -z "$commit_msg" ]; then
commit_msg="Update: $(date +'%Y-%m-%d %H:%M:%S')"
fi
# 2. Create an automatic commit message with the current date and time
commit_msg="Update: $(date +'%Y-%m-%d %H:%M:%S')"
echo "📝 Commit Message: $commit_msg"
git commit -m "$commit_msg"
# 3. الرفع إلى الفرع الرئيسي (Main/Master)
echo "📤 جاري الرفع إلى المستودع..."
# 3. Push to the main branch
echo "📤 Pushing to repository..."
git push origin main
echo "✅ تم الرفع بنجاح!"
echo "✅ Deployment successful!"
echo "--------------------------------------"
echo "💡 الخطوة التالية على السيرفر:"
echo "1. قم بالدخول إلى السيرفر عبر SSH"
echo "2. نفذ الأمر: git pull origin main"
echo "3. نفذ الأمر: cd backend && composer install"
echo "💡 Next steps on the server:"
echo "1. Connect via SSH"
echo "2. Run: git pull origin main"
echo "3. Run: cd backend && composer install"
echo "--------------------------------------"