الدليل الشامل للنشر التلقائي عبر GitHub Webhook واستضافة cPanel

مرجع تقني وافي لربط أي مشروع Laravel مستقبلي بالـ Auto-Deploy دون أي تدخل يدوي

Laravel 10 & 11 cPanel & LiteSpeed Zero Downtime Deploy No Controller Needed
🔐 البيانات والمفاتيح السرية الفعلية المعتمدة في المشروع
المفتاح السري (Deploy Secret) TERKO_DEPLOY_SECRET_2026 مُفعل
التوكن (GitHub Token PAT) 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 تم اختباره بنجاح
رابط الـ Webhook (Payload URL) https://stores.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
مسار المجلد على السيرفر /home/saydleya/public_html/stores.saydleyat.com
المستودع (Repository) gabershemy/DrugsStoresApp (Private)
🔄 كيف تعمل دورة النشر التلقائي (Architecture)
1

رفع التعديلات (Push)

تعمل Push من GitHub Desktop أو Terminal لجهازك.

2

إطلاق الـ Webhook

يرسل GitHub طلب POST فوري لمسار API على السيرفر.

3

فحص الـ Secret

يتأكد لارافيل من مطابقة TERKO_DEPLOY_SECRET_2026.

4

سحب وتفريغ الكاش

يتم سحب الكود عبر التوكن وتفريغ كاش لارافيل فوراً.

الخطوة 1

استخراج GitHub Personal Access Token (PAT)

إذا كان مستودعك على GitHub خاصاً (Private)، يحتاج السيرفر لتوكن دائم حتى يسحب التحديثات تلقائياً بدون أن يسألك عن اسم المستخدم وكلمة السر في كل عملية.

  1. ادخل إلى حسابك في GitHub واضغط على صورتك بالأعلى ثم اختر Settings.
  2. من القائمة الجانبية اليسرى بالأسفل، اضغط على Developer Settings.
  3. اختر Personal access tokens ثم Tokens (classic).
  4. اضغط Generate new token (classic) واكتب اسماً للمفتاح (مثل: cpanel-deploy).
  5. ضع علامة صح ✓ على صلاحية repo (Full control of private repositories).
  6. اضغط زر Generate token وانسخ الرمز الذي يبدأ بـ ghp_... واحفظه معك.
💡 التوكن الفعلي المستخدم في مشروعنا: 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
الخطوة 2

كود الـ Webhook في لارافيل (routes/api.php)

لا حاجة لإنشاء أي Controller إضافي. نقوم بكتابة المسار كـ Closure Route مباشر وسريع داخل ملف routes/api.php:

routes/api.php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

// ─────────────────────────────────────────────────────────────────────────────
// GitHub Auto-Deploy Webhook (Closure Route)
// ─────────────────────────────────────────────────────────────────────────────
Route::match(['get', 'post'], '/deploy-webhook', function (Request $request) {
    // 1. المفتاح السري المعتمد
    $secret = env('DEPLOY_SECRET', 'TERKO_DEPLOY_SECRET_2026');
    $providedSecret = $request->query('secret') ?: $request->input('secret');

    // قائمة المفاتيح المقبولة
    $validSecrets = array_filter([$secret, 'TERKO_DEPLOY_SECRET_2026']);

    // 2. التحقق من تطابق الـ Secret
    if (!empty($validSecrets) && !in_array($providedSecret, $validSecrets, true)) {
        return response()->json([
            'status' => 'error',
            'message' => 'Unauthorized: Invalid deploy secret'
        ], 403);
    }

    // 3. الانتقال لمجلد المشروع وسحب التحديثات وتفريغ الكاش
    $baseDir = base_path();
    $command = "cd {$baseDir} && git pull origin main 2>&1 && php artisan optimize:clear 2>&1";
    $output = shell_exec($command);

    // 4. إرجاع النتيجة بتنسيق JSON إلى GitHub
    return response()->json([
        'status' => 'success',
        'message' => 'Deployed successfully',
        'output' => $output,
        'timestamp' => now()->toIso8601String(),
    ], 200);
});
الخطوة 3

استثناء الـ Webhook من حماية CSRF

لأن طلب GitHub يأتي من خارج المتصفح، يجب استثناء الرابط من الـ CSRF Token حتى لا يرفضه السيرفر بخطأ 419 Page Expired:

أ) في Laravel 11 (ملف bootstrap/app.php):

bootstrap/app.php
    ->withMiddleware(function (Middleware $middleware) {
        $middleware->validateCsrfTokens(except: [
            'api/*',
            'deploy-webhook',
        ]);
    })

ب) في Laravel 10 و 9 (ملف app/Http/Middleware/VerifyCsrfToken.php):

app/Http/Middleware/VerifyCsrfToken.php
protected $except = [
    'api/*',
    'deploy-webhook',
];
الخطوة 4

تهيئة Git على السيرفر (تنفذ مرة واحدة لكل مشروع)

افتح شاشة Terminal داخل cPanel (أو اتصل بـ SSH)، وانتقل لمجلد الموقع الخاص بك ونفذ هذا السطر الكامل الجاهز للنسخ:

cPanel Terminal (أمر متكامل جاهز للنسخ المباشر)
cd /home/saydleya/public_html/stores.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/DrugsStoresApp.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/DrugsStoresApp.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
✅ لماذا هذا الأمر آمن 100%؟
لأن ملف .env ومجلدات storage/ و public/storage مضافة تلقائياً في ملف .gitignore، ولذلك فإن Git لا يمسها ولا يحذفها نهائياً.
الخطوة 5

ضبط الـ Webhook داخل مستودع GitHub

الآن نربط الـ Webhook داخل إعدادات مستودع GitHub:

  1. اذهب إلى مستودعك على GitHub، ثم اضغط على Settings من الشريط العلوي.
  2. من القائمة الجانبية اليسرى اختر Webhooks، ثم اضغط على زر Add webhook.
  3. املأ البيانات بالشكل التالي:
    • Payload URL: https://stores.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
    • Content type: اختر application/json
    • Secret: اتركه فارغاً (لأننا نتحقق من السر في رابط الـ URL مباشرة)
    • SSL verification: اختر Enable SSL verification
    • Which events: اختر Just the push event
    • تأكد من تفعيل علامة صح على Active
  4. اضغط Add webhook للحفظ.
الخطوة 6

الاختبار والتحقق (Verification)

بمجرد الحفظ، سيرسل GitHub اختبار Ping. للتأكد من نجاحه بالكامل:

  1. انزل لأسفل صفحة الـ Webhook عند قسم Recent Deliveries.
  2. ستجد علامة صح خضراء بجانب الطلب مع كود 200 OK.
  3. اضغط على الطلب ثم اختر تبويب Response واقرأ خانة Response Body: ستجد نصاً شبيهاً بـ: {"status":"success","message":"Deployed successfully","output":"Already up to date.\n..."}
🎉 تهانينا! من الآن فصاعداً، أي git push تعمله من جهازك سيصل للسيرفر في ثانيتين وبشكل تلقائي تماماً!
دليل المشاريع

أكواد وروابط الـ Webhook لكل مشروع منفصل (39 مشروع)

ابحث عن اسم المشروع أو اختره مباشرة من القائمة، وانسخ الرابط والأمر بضغطة زر واحدة:

#1 AgriAi Pro gabershemy/Agri-Sense
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://agri-sense.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/agri-sense.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Agri-Sense.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Agri-Sense.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#2 Ai School Ga gabershemy/ai_school_new
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://ai-school-new.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/ai-school-new.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/ai_school_new.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/ai_school_new.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#3 Ai WhatsApp Bot gabershemy/Saas-Multitenancy-Ai-WhatsApp-Bot
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://saas-multitenancy-ai-whatsapp-bot.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/saas-multitenancy-ai-whatsapp-bot.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Saas-Multitenancy-Ai-WhatsApp-Bot.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Saas-Multitenancy-Ai-WhatsApp-Bot.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#4 Almobtaker ERP gabershemy/almobtaker_erp
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://almobtaker-erp.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/almobtaker-erp.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/almobtaker_erp.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/almobtaker_erp.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#5 Almobtaker-Clinic gabershemy/clinic
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://clinic.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/clinic.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/clinic.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/clinic.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#6 Assem Hegazy gabershemy/assem_hegazy
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://assem-hegazy.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/assem-hegazy.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/assem_hegazy.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/assem_hegazy.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#7 Delta Gas gabershemy/Delta-Gas
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://delta-gas.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/delta-gas.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Delta-Gas.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Delta-Gas.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#8 Dr Mina Nassef gabershemy/Dr-Mina-Clinic
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://dr-mina-clinic.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/dr-mina-clinic.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Dr-Mina-Clinic.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Dr-Mina-Clinic.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#9 Dr Omar Customers Tracking gabershemy/Pharmacy--ERP
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://pharmacy-erp.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/pharmacy-erp.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Pharmacy--ERP.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Pharmacy--ERP.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#10 Drug Stores F gabershemy/DrugsStoresApp
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://drugsstoresapp.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/drugsstoresapp.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/DrugsStoresApp.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/DrugsStoresApp.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#11 EduAI Pro gabershemy/EduAp-Pro
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://eduap-pro.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/eduap-pro.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/EduAp-Pro.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/EduAp-Pro.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#12 Elfeki Agri gabershemy/Elfeky-Agri
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://elfeky-agri.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/elfeky-agri.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Elfeky-Agri.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Elfeky-Agri.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#13 Elseknedy gabershemy/elseknedy
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://elseknedy.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/elseknedy.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/elseknedy.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/elseknedy.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#14 Family-Tree gabershemy/Family-Tree
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://family-tree.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/family-tree.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Family-Tree.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Family-Tree.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#15 Hekayet Watan gabershemy/Hekayet-Watan
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://hekayet-watan.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/hekayet-watan.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Hekayet-Watan.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Hekayet-Watan.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#16 Hospital New Fin gabershemy/hospital
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://hospital.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/hospital.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/hospital.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/hospital.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#17 Hossam E-Learning gabershemy/Hossam-E-Learning
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://mohamedshaat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/mohamedshaat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Hossam-E-Learning.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Hossam-E-Learning.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#18 ICU Medications Pictograms gabershemy/ICU-Medications-Pictograms
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://icu-medications-pictograms.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/icu-medications-pictograms.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/ICU-Medications-Pictograms.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/ICU-Medications-Pictograms.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#19 Installement_hossam-New3 gabershemy/instal_hossam
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://instal-hossam.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/instal-hossam.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/instal_hossam.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/instal_hossam.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#20 Installement_nabil_motorcycle gabershemy/Installement_nabil_motorcycle
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://installement-nabil-motorcycle.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/installement-nabil-motorcycle.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Installement_nabil_motorcycle.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Installement_nabil_motorcycle.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#21 Laravel 13 Filament 5 Master gabershemy/Laravel_13_Filament_5_Master
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://laravel-13-filament-5-master.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/laravel-13-filament-5-master.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Laravel_13_Filament_5_Master.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Laravel_13_Filament_5_Master.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#22 Laravel-AI-Personal-Assistant gabershemy/ai_assistant
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://ai-assistant.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/ai-assistant.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/ai_assistant.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/ai_assistant.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#23 Laravel-Installement Nee gabershemy/Laravel-Installement
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://laravel-installement.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/laravel-installement.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Laravel-Installement.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Laravel-Installement.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#24 Medical Centers Records gabershemy/Medical-Centers-Records
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://medical-centers-records.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/medical-centers-records.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Medical-Centers-Records.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Medical-Centers-Records.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#25 Medical Rep CRM gabershemy/Medical_Rep_CRM
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://medical-rep-crm.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/medical-rep-crm.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Medical_Rep_CRM.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Medical_Rep_CRM.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#26 Osama Khalifa gabershemy/Osama_Abokhalifa
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://osama-abokhalifa.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/osama-abokhalifa.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Osama_Abokhalifa.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Osama_Abokhalifa.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#27 POS New gabershemy/Sales_New
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://sales-new.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/sales-new.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Sales_New.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Sales_New.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#28 Poultry Farm gabershemy/Poultry-Farm
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://poultry-farm.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/poultry-farm.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Poultry-Farm.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Poultry-Farm.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#29 Saad Sakr Filter gabershemy/Water-Filters-Air-Condition
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://water-filters-air-condition.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/water-filters-air-condition.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Water-Filters-Air-Condition.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Water-Filters-Air-Condition.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#30 Teerko Car Rent gabershemy/Terko-Car-Rent
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://terko-car-rent.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/terko-car-rent.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Terko-Car-Rent.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Terko-Car-Rent.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#31 VssNew gabershemy/Vision
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://vision.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/vision.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Vision.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Vision.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#32 adly khallaf gabershemy/adly_khallaf
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://adly-khallaf.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/adly-khallaf.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/adly_khallaf.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/adly_khallaf.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#33 el-demairy-main gabershemy/dr-eldemery-new
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://dr-eldemery-new.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/dr-eldemery-new.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/dr-eldemery-new.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/dr-eldemery-new.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#34 filakitv5 gabershemy/filakitv5
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://filakitv5.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/filakitv5.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/filakitv5.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/filakitv5.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#35 industry_dev gabershemy/indust_dev
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://indust-dev.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/indust-dev.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/indust_dev.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/indust_dev.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#36 lens_zatca_new gabershemy/lens_zatca_new
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://lens-zatca-new.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/lens-zatca-new.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/lens_zatca_new.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/lens_zatca_new.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#37 local_dev gabershemy/local_dev
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://local-dev.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/local-dev.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/local_dev.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/local_dev.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#38 saleh-tarfaya gabershemy/Saleh-Tarfayah
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://saleh-tarfayah.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/saleh-tarfayah.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/Saleh-Tarfayah.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/Saleh-Tarfayah.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
#39 shiba gabershemy/shiba
🔗 رابط الـ Webhook (في إعدادات GitHub):
https://shiba.saydleyat.com/api/deploy-webhook?secret=TERKO_DEPLOY_SECRET_2026
💻 أمر Terminal السيرفر (تشغيل لمرة واحدة):
cd /home/saydleya/public_html/shiba.saydleyat.com && git init && git remote add origin https://gabershemy:[email protected]/gabershemy/shiba.git || git remote set-url origin https://gabershemy:[email protected]/gabershemy/shiba.git && git fetch origin main && git branch -M main && git reset --hard origin/main && php artisan optimize:clear
حل المشاكل

دليل استكشاف الأخطاء وحلها (Troubleshooting)

⚠️ خطأ 404 Not Found

السبب: المسار غير مسجل في لارافيل، أو أن ملف routes/api.php معطل في bootstrap/app.php.

الحل: تأكد من وضع كود الـ route في routes/api.php، وتفعيل مسار api في bootstrap/app.php، ثم نفّذ php artisan route:clear.

⚠️ خطأ 419 Page Expired

السبب: تم اعتراض الطلب بواسطة حماية CSRF الخاصة بلارافيل.

الحل: استثنِ api/* و deploy-webhook من حماية CSRF كما هو موضح في الخطوة 3.

⚠️ الـ Webhook يعطي 200 لكن الملفات لا تتحدث

السبب: عند فحص الـ Response Body تجد رسالة fatal: not a git repository.

الحل: مجلد الموقع على السيرفر ليس مستودع Git. نفذ أوامر الخطوة 4 في Terminal السيرفر لمرة واحدة.

⚠️ خطأ Authentication failed أو طلب باسورد

السبب: السيرفر لا يستطيع سحب المستودع الخاص بدون Personal Access Token.

الحل: تأكد من تضمين التوكن في رابط الـ Remote: https://USER:[email protected]/....