קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Firebase App Hosting
plat_web
Firebase App Hosting מייעל את הפיתוח והפריסה של אפליקציות אינטרנט דינמיות, ומציע שילוב עם GitHub ועם מוצרים אחרים של Firebase כמו Authentication, Cloud Firestore ו-Firebase AI Logic.
App Hosting כולל תמיכה מובנית ומוגדרת מראש ב-Next.js וב-Angular, וגם תמיכה רחבה יותר במסגרות אינטרנט פופולריות שונות.
שנתחיל?
יכולות עיקריות
שילוב עם GitHub |
כל מה שצריך כדי להשיק גרסה חדשה של האפליקציה הוא ביצוע commit ב-git.
יכול לבצע פריסה אוטומטית בכל פעם שמעלים
לסניף ספציפי.App Hosting
|
מגובה על ידי Google Cloud |
App Hosting משתמש בתנאים ובהגבלות של Google Cloud ומפיץ את האפליקציה שלכם למוצרי Google Cloud שאתם סומכים עליהם. האפליקציות מבוססות על Cloud Build, מוגשות ב-Cloud Run ונשמרות במטמון ב-Cloud CDN.
שירותים משולבים כמו Cloud Secret Manager שומרים על מפתחות ה-API שלכם.
|
השקת תכונות מבוססות-AI בהיקף נרחב |
מתחילים עם דוגמאות ל-AI שמשתמשות ב-Gemini.
כדי לשמור על מהירות טעינה ראשונית גבוהה כשמוסיפים לאפליקציה תכונות של AI גנרטיבי, אפשר להשתמש ב-Cloud Secret Manager כדי להגן על מפתח ה-API של נקודת הקצה של ה-API, ולנצל את התמיכה בהזרמה של App Hosting.
|
שילוב עם מסוף Firebase |
כדאי לעקוב אחרי גרסאות ה-build וההשקות במסוף Firebase כדי לדעת תמיד מה קורה. אפשר לגשת ליומני גישה ולמדדים, להוסיף דומיין מותאם אישית ולהפעיל השקות באופן ידני דרך קונסולת Firebase.
|
איך זה עובד?
- באמצעות מסוף Firebase או Firebase CLI, מאשרים ומתקינים את אפליקציית Firebase GitHub במאגר.
- עדיין במסוף Firebase או ב-Firebase CLI, יוצרים Firebase App Hosting backend עם מאגר וענף פעיל לפריסה רציפה.
App Hosting יוצר מדיניות פריסה שמוגדרת כברירת מחדל עבור ה-Backend, כדי לפרוס אותו ל-100% מהתנועה באופן מיידי כששינוי נדחף לענף היעד.
- כששולחים קומיט לענף הפעיל, Google Cloud Developer Connect שולח אירוע אל Firebase App Hosting.
- בתגובה לאירוע הזה, Firebase App Hosting יוצרת גרסת build חדשה עבור הקצה העורפי שמחובר למאגר.
- קודם כל, Firebase App Hosting יוצר גרסת build חדשה של Cloud Build בשביל הקומיט. בשלב הזה, Google Cloud buildpacks קובעים באיזו מסגרת משתמשים באפליקציה כדי ליצור קונטיינר והגדרות (כולל משתני סביבה, סודות, מספר מינימלי או מקסימלי של מופעים, זיכרון מקביל, מעבד והגדרות VPC) שמתאימים לאפליקציה.
מידע נוסף זמין במאמר בנושא תהליך הבנייה של App Hosting.
- כשהעבודה Cloud Build מסתיימת, המאגר נשמר במאגר Artifact Registry שמוקדש ל-Firebase App Hosting.
Firebase App Hosting מוסיף Cloud Run Revision חדש לשירות Cloud Run באמצעות התמונה וההגדרה שלכם.
- אחרי שCloud Run Revision מסתיים ומתאמת את תקינותו, Firebase App Hosting משנה את הגדרות התנועה שלו כך שכל הבקשות החדשות יופנו אל Cloud Run Revision החדש. בשלב הזה, ההשקה הושלמה.
- כשנשלחת בקשה לאתר שמתארח ב-Firebase App Hosting, הבקשה מטופלת על ידי מאזן העומסים של Google Cloud עם Cloud CDN מופעל.
בקשות שלא נשמרו במטמון נשלחות לשירות Cloud Run שלכם.
נתיב ההטמעה
|
הגדרת Firebase |
אם עדיין אין לכם פרויקט, אתם צריכים ליצור פרויקט ב-Firebase ולוודא שתוכנית התמחור Blaze מופעלת בו.
|
|
הגדר את App Hosting |
יוצרים קצה עורפי (backend) באמצעות מסוף Firebase או Firebase CLI.App Hosting זו קבוצה של משאבים מנוהלים לאפליקציה, כולל החיבור למאגר GitHub של האפליקציה.
|
|
ניהול האפליקציה ומעקב אחרי הביצועים שלה |
אחרי שמסיימים ליצור App Hosting backend, האפליקציה זמינה בתת-הדומיין החינמי שלה, ואפשר לראות פרטים על ההשקה במסוף Firebase. אפשר להשתמש במסוף Google Cloud כדי להציג את היומנים ולחפש בהם.
|
|
פיתוח האפליקציה |
App Hosting מתחיל אוטומטית השקה חדשה בכל פעם ששולחים commit לענף הפעיל.
|
השלבים הבאים
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-31 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-31 (שעון UTC)."],[],[],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."]]