تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
Firebase App Hosting
plat_web
تعمل أداة Firebase App Hosting على تبسيط تطوير تطبيقات الويب الديناميكية ونشرها، كما توفّر دمج GitHub والدمج مع منتجات Firebase الأخرى، مثل Authentication وCloud Firestore وFirebase AI Logic.
توفّر App Hosting دعمًا مُدمجًا ومُعدّ مسبقًا لـ Next.js وAngular
بالإضافة إلى دعم أوسع لمختلف أُطر عمل الويب الشائعة.
البدء
الإمكانات الرئيسية
دمج GitHub |
إنّ عملية إرسال الإصدار إلى Git هي كل ما تحتاجه لطرح إصدار جديد من تطبيقك.
يُمكن لـ App Hosting نشر الإصدار تلقائيًا في كل مرة تتم فيها
عملية الدفع إلى فرع معيّن.
|
مدعوم من Google Cloud |
تستخدم App Hosting بنود خدمة Google Cloud، وتنشر تطبيقك
على منتجات Google Cloud التي تثق بها. تم إنشاء التطبيقات باستخدام Cloud Build،
ويتم عرضها على Cloud Run، ويتم تخزينها مؤقتًا في Cloud CDN.
تحافظ الخدمات المدمجة، مثل Cloud Secret Manager، على أمان مفاتيح واجهة برمجة التطبيقات.
|
طرح ميزات مستندة إلى الذكاء الاصطناعي على نطاق واسع |
ابدأ باستخدام نماذج الذكاء الاصطناعي التي تستخدم Gemini.
يمكنك حماية مفتاح واجهة برمجة التطبيقات الخاص بنقطة نهاية واجهة برمجة التطبيقات باستخدام Cloud Secret Manager والاستفادة من
ميزة البث في "استضافة التطبيقات" للحفاظ على أوقات التحميل الأولية السريعة أثناء
إضافة ميزات الذكاء الاصطناعي التوليدي إلى تطبيقك.
|
دمج Firebase console |
يمكنك تتبُّع عمليات الإنشاء والطرح في وحدة تحكّم Firebase حتى تتمكّن من معرفة ما يحدث في كل وقت. الوصول إلى السجلّات والمقاييس وإضافة نطاق مخصّص،
وبدء عمليات الطرح يدويًا من وحدة تحكّم Firebase
|
كيف تعمل هذه الميزة؟
- باستخدام وحدة تحكّم Firebase أو واجهة برمجة التطبيقات Firebase، عليك تفويض
تطبيق Firebase GitHub وتثبيته في مستودعك.
- في وحدة تحكّم Firebase أو Firebase CLI، أنشئ خلفيًا
Firebase App Hosting مع مستودع وفرع علني
للنشر المستمر.
App Hosting تُنشئ سياسة طرح تلقائية لنظامك الأساسي من أجل طرح الإصدار
على 100% من الزيارات على الفور عند دفع تغيير إلى الفرع
المستهدف.
- عند دفع رمز إلى فرعك المنشور، تُرسِل أداة Google Cloud Developer Connect
حدثًا إلى Firebase App Hosting.
- استجابةً لهذا الحدث، ينشئ Firebase App Hosting إصدارًا جديدًا ل
الخلفية المرتبطة بالمستودع.
- أولاً، تنشئ Firebase App Hosting إصدارًا جديدًا من Cloud Build لتحميله. في هذه المهمة، تُحدِّد حِزم إنشاء Google Cloud الإطار الذي يتم استخدامه في تطبيقك لإنشاء حاوية وإعدادات (بما في ذلك متغيّرات البيئة والأسرار والحد الأدنى أو الحد الأقصى للأجهزة الافتراضية وإعدادات ذاكرة المعالجة المتزامنة ووحدة المعالجة المركزية وشبكة VPC) التي تناسب تطبيقك.
اطّلِع على عملية إنشاء App Hosting للحصول على
مزيد من المعلومات.
- عند اكتمال مهمة Cloud Build، يتم تخزين الحاوية في مستودع
Artifact Registry مخصّص لـ Firebase App Hosting.
بعد ذلك، تضيف Firebase App Hosting Cloud Runمراجعة جديدة إلى
Cloud Run خدمة باستخدام صورتك وإعداداتك.
- بعد اكتمال "Cloud Run المراجعة" والتأكّد من صحتها، تعديل "Firebase App Hosting" إعدادات الزيارات لتوجيه كل الطلبات الجديدة إلى "Cloud Run المراجعة" الجديدة. في هذه المرحلة، اكتمل الطرح.
- عند إرسال طلب إلى موقع إلكتروني مستضاف على Firebase App Hosting، يتم عرض
الطلب من خلال "جهاز موازنة الحمولة في Google Cloud" مع تفعيل Cloud CDN.
يتم إرسال الطلبات غير المخزّنة مؤقتًا إلى
خدمة Cloud Run.
مسار التنفيذ
|
إعداد Firebase |
إذا لم يكن لديك مشروع على Firebase، أنشئ مشروعًا وتأكَّد من أنّه
مفعَّل فيه خطة أسعار Blaze.
|
|
إعداد App Hosting |
باستخدام وحدة تحكّم Firebase أو واجهة سطر أوامر Firebase، أنشئ
App Hosting خلفية. هذه هي مجموعة الموارد المُدارة لتطبيقك، بما في ذلك عملية الربط بمستودع GitHub الخاص بتطبيقك.
|
|
إدارة تطبيقك ومراقبته |
عند الانتهاء من إنشاء خلفية App Hosting، يصبح تطبيقك
متاحًا على نطاقه الفرعي المجاني، ويمكنك الاطّلاع على تفاصيل عن
الطرح في وحدة تحكّم Firebase. يمكنك استخدام
وحدة تحكّم Google Cloud
للاطّلاع على السجلّات والبحث فيها.
|
|
تطوير تطبيقك |
يبدأ تطبيق App Hosting عملية طرح جديدة تلقائيًا في كل مرة يتم فيها إرسال commit
إلى الفرع المنشور.
|
الخطوات التالية
- ابدأ بنشر التطبيقات.
- جرِّب أحد App Hosting ورشات رموز البرامج التي تدمج
تطبيقًا مستضافًا مع Firebase Authentication وميزات الذكاء الاصطناعي من Google:
Next.js |
Angular.}
- اطّلِع على مزيد من المعلومات حول App Hosting والأُطر المتوافقة مع المنتدى المختلفة التي تتوافق معها.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-08-08 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-08-08 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["Firebase App Hosting \nplat_web \n\nFirebase App Hosting streamlines the development and deployment of dynamic\nweb apps, offering GitHub integration and integration with other Firebase\nproducts like Authentication, Cloud Firestore, and Firebase AI Logic.\nApp Hosting has built-in, preconfigured support for Next.js and Angular\nas well as broader support for various popular web frameworks.\n\n[Get started](/docs/app-hosting/get-started)\n\nKey capabilities\n\n|-----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| GitHub integration | A git commit is all that's needed to roll out a new version of your app. App Hosting can automatically deploy every time you push to a specific branch. |\n| Backed by Google Cloud | App Hosting uses Google Cloud Terms of Service, and deploys your app to Google Cloud products you trust. Apps are built with Cloud Build, served on Cloud Run, and cached in Cloud CDN. Integrated services like Cloud Secret Manager keep your API keys safe. |\n| Ship AI-powered features at scale | Start with AI samples that use Gemini. Protect your API endpoint's API key with Cloud Secret Manager and leverage App Hosting's streaming support to maintain fast initial load times as you add generative AI features into your app. |\n| Firebase console integration | Monitor your builds and rollouts in the Firebase console so you always know what's going on. Access logs and metrics, add a custom domain, and manually trigger rollouts from the Firebase console. |\n\nHow does it work?\n\n1. Using the Firebase console or Firebase CLI, authorize and install the Firebase GitHub app on your repository.\n2. Still in the Firebase console or Firebase CLI, create a Firebase App Hosting backend, with a repository and live branch for continuous deployment. App Hosting creates a default rollout policy for your backend to roll out to 100% of traffic immediately when a change is pushed to the target branch.\n3. When a commit is pushed to your live branch, Google Cloud Developer Connect sends an event to Firebase App Hosting.\n4. Responding to this event, Firebase App Hosting creates a new build for the backend connected to the repository.\n 1. First, Firebase App Hosting creates a new Cloud Build build for your commit. In this job, [Google Cloud buildpacks](https://cloud.google.com/docs/buildpacks/overview) determine which framework is being used in your application to create a container and configuration (including environment variables, secrets, minimum or maximum instances, concurrency memory, CPU, and VPC configuration) that suits your application. See [the App Hosting build process](/docs/app-hosting/build) For more information.\n 2. When the Cloud Build job is complete, your container is stored in an Artifact Registry repository dedicated to Firebase App Hosting. Firebase App Hosting then adds a new Cloud Run Revision to a Cloud Run service using your image and configuration.\n5. Once your Cloud Run Revision is complete and verified healthy, Firebase App Hosting modifies its traffic configuration to point all new requests to your new Cloud Run Revision. At this point, the rollout is complete.\n6. When a request is sent to a website hosted on Firebase App Hosting, the request is served by Google Cloud Load Balancer with Cloud CDN enabled. Uncached requests are sent to your Cloud Run service.\n\nImplementation path\n\n|---|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | Set up Firebase | If you don't already have one, create a Firebase project and make sure it has the Blaze pricing plan enabled. |\n| | Set up App Hosting | With the Firebase console or the Firebase CLI, create an App Hosting backend. This is the collection of managed resources for your app, including the connection to the GitHub repository for your app. |\n| | Manage and monitor your app | When you finish creating an App Hosting backend, your app is available on its free subdomain, and you can view details about the rollout in the Firebase console. You can use the [Google Cloud console](https://console.cloud.google.com/logs/query?project=_) to view and search through your logs. |\n| | Develop your app | App Hosting automatically starts a new rollout every time a commit is pushed to your live branch. |\n\nNext steps\n\n- [Get started](/docs/app-hosting/get-started) deploying apps.\n- Try an App Hosting codelab that integrates a hosted app with Firebase Authentication and Google AI features: [Next.js](https://firebase.google.com/codelabs/firebase-nextjs) \\| [Angular](https://firebase.google.com/codelabs/firebase-web).}\n- Learn more about the various [community-supported frameworks](https://firebaseopensource.com/platform/app_hosting) supported by App Hosting."]]