با مجموعهها، منظم بمانید ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Firebase App Hosting
plat_web
Firebase App Hosting توسعه و استقرار برنامه های وب پویا را ساده می کند و یکپارچه سازی و ادغام GitHub با سایر محصولات Firebase مانند Authentication ، Cloud Firestore و Firebase AI Logic را ارائه می دهد. App Hosting دارای پشتیبانی داخلی و از پیش پیکربندی شده برای Next.js و Angular و همچنین پشتیبانی گسترده تر از چارچوب های مختلف وب محبوب است.
یک git commit تمام چیزی است که برای عرضه نسخه جدید برنامه شما لازم است. App Hosting می تواند به طور خودکار هر بار که به یک شعبه خاص فشار می آورید مستقر شود.
پشتیبانی شده توسط Google Cloud
App Hosting از شرایط خدمات Google Cloud استفاده می کند و برنامه شما را در محصولات Google Cloud مورد اعتماد شما مستقر می کند. برنامه ها با Cloud Build ساخته می شوند، در Cloud Run ارائه می شوند و در Cloud CDN ذخیره می شوند. سرویس های یکپارچه مانند Cloud Secret Manager کلیدهای API شما را ایمن نگه می دارند.
ویژگی های مبتنی بر هوش مصنوعی را در مقیاس حمل کنید
با نمونه های هوش مصنوعی که از Gemini استفاده می کنند شروع کنید. با استفاده از Cloud Secret Manager از کلید API نقطه پایانی API خود محافظت کنید و از پشتیبانی استریم میزبانی برنامه استفاده کنید تا همزمان با افزودن ویژگیهای هوش مصنوعی مولد به برنامه، زمانهای بارگذاری اولیه سریع را حفظ کنید.
ادغام کنسول Firebase
بر ساختها و عرضههای خود در کنسول Firebase نظارت کنید تا همیشه بدانید چه خبر است. به گزارشها و معیارها دسترسی داشته باشید، یک دامنه سفارشی اضافه کنید، و بهصورت دستی عرضهها را از کنسول Firebase فعال کنید.
چگونه کار می کند؟
با استفاده از کنسول Firebase یا Firebase CLI، برنامه 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 برای commit شما ایجاد می کند. در این کار، بستههای ساخت Google Cloud تعیین میکنند که کدام چارچوب در برنامه شما برای ایجاد یک کانتینر و پیکربندی (شامل متغیرهای محیط، اسرار، نمونههای حداقل یا حداکثر، حافظه همزمان، CPU و پیکربندی 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 Load Balancer با Cloud CDN فعال ارائه میشود. درخواست های ذخیره نشده به سرویس Cloud Run شما ارسال می شود.
مسیر پیاده سازی
Firebase را راه اندازی کنید
اگر قبلاً ندارید، یک پروژه Firebase ایجاد کنید و مطمئن شوید که طرح قیمت گذاری Blaze را فعال کرده است.
App Hosting تنظیم کنید
با کنسول Firebase یا Firebase CLI، یک App Hosting Backend ایجاد کنید. این مجموعه ای از منابع مدیریت شده برای برنامه شما است، از جمله اتصال به مخزن GitHub برای برنامه شما.
برنامه خود را مدیریت و نظارت کنید
پس از اتمام ایجاد یک باطن App Hosting ، برنامه شما در زیر دامنه رایگان آن در دسترس است و می توانید جزئیات مربوط به عرضه را در کنسول Firebase مشاهده کنید. می توانید از کنسول Google Cloud برای مشاهده و جستجو در لاگ های خود استفاده کنید.
برنامه خود را توسعه دهید
App Hosting به طور خودکار هر بار که یک commit به شعبه زنده شما ارسال می شود، یک عرضه جدید را شروع می کند.
تاریخ آخرین بهروزرسانی 2025-08-08 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 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."]]