संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Firebase App Hosting
plat_web
Firebase App Hosting, डाइनैमिक वेब ऐप्लिकेशन के डेवलपमेंट और डिप्लॉयमेंट को आसान बनाता है. साथ ही, GitHub इंटिग्रेशन और Authentication, Cloud Firestore, और Firebase AI Logic जैसे Firebase के अन्य प्रॉडक्ट के साथ इंटिग्रेशन की सुविधा देता है.
App Hosting में, Next.js और Angular के लिए पहले से कॉन्फ़िगर की गई सहायता पहले से मौजूद है. साथ ही, इसमें कई लोकप्रिय वेब फ़्रेमवर्क के लिए भी सहायता उपलब्ध है.
शुरू करें
मुख्य सुविधाएं
GitHub इंटिग्रेशन |
अपने ऐप्लिकेशन का नया वर्शन रोल आउट करने के लिए, सिर्फ़ एक Git कमिट की ज़रूरत होती है.
App Hosting, किसी खास शाखा पर पुश करने पर, अपने-आप डिप्लॉय हो सकता है.
|
Google Cloud ने बैक अप लिया |
App Hosting, Google Cloud की सेवा की शर्तों का इस्तेमाल करता है और आपके ऐप्लिकेशन को उन Google Cloud प्रॉडक्ट पर डिप्लॉय करता है जिन पर आपका भरोसा है. ऐप्लिकेशन Cloud Build के साथ बनाए जाते हैं,
इन्हें Cloud Run पर दिखाया जाता है, और Cloud सीडीएन में कैश मेमोरी में सेव किया जाता है.
Cloud Secret Manager जैसी इंटिग्रेट की गई सेवाएं, आपकी एपीआई कुंजियों को सुरक्षित रखती हैं.
|
एआई की मदद से काम करने वाली सुविधाओं को बड़े पैमाने पर उपलब्ध कराना |
Gemini का इस्तेमाल करने वाले एआई सैंपल से शुरुआत करें.
Cloud Secret Manager की मदद से, अपने एपीआई एंडपॉइंट की एपीआई पासकोड को सुरक्षित रखें. साथ ही, अपने ऐप्लिकेशन में जनरेटिव एआई की सुविधाएं जोड़ते समय, ऐप्लिकेशन को तेज़ी से लोड करने के लिए, ऐप्लिकेशन होस्टिंग की स्ट्रीमिंग की सुविधा का फ़ायदा लें.
|
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 बिल्ड बनाता है. इस जॉब में, Google Cloud के बिल्डपैक यह तय करते हैं कि आपके ऐप्लिकेशन में कौनसा फ़्रेमवर्क इस्तेमाल किया जा रहा है, ताकि आपके ऐप्लिकेशन के हिसाब से कंटेनर और कॉन्फ़िगरेशन (इसमें एनवायरमेंट वैरिएबल, सीक्रेट, कम से कम या ज़्यादा से ज़्यादा इंस्टेंस, एक साथ कई काम करने की सुविधा वाली मेमोरी, सीपीयू, और वीपीसी कॉन्फ़िगरेशन शामिल हैं) बनाया जा सके.
ज़्यादा जानकारी के लिए, App Hosting की बिल्ड प्रोसेस देखें.
- Cloud Build जॉब पूरा होने के बाद, आपका कंटेनर Firebase App Hosting के लिए बने Artifact Registry रिपॉज़िटरी में सेव हो जाता है.
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 CLI की मदद से, एक
App Hosting बैकएंड बनाएं. यह आपके ऐप्लिकेशन के लिए मैनेज किए जा रहे संसाधनों का कलेक्शन है. इसमें आपके ऐप्लिकेशन के लिए GitHub रिपॉज़िटरी का कनेक्शन भी शामिल है.
|
|
अपने ऐप्लिकेशन को मैनेज और मॉनिटर करना |
App Hosting बैकएंड बनाने के बाद, आपका ऐप्लिकेशन अपने बिना किसी शुल्क वाले सबडोमेन पर उपलब्ध हो जाता है. साथ ही, Firebase कंसोल में रोल आउट की जानकारी देखी जा सकती है. अपने लॉग देखने और खोजने के लिए,
Google Cloud कंसोल का इस्तेमाल किया जा सकता है.
|
|
अपना ऐप्लिकेशन बनाना |
App Hosting हर बार लाइव ब्रैंच में कोई बदलाव होने पर, अपने-आप नया रोल आउट शुरू कर देता है.
|
अगले चरण
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-08 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-08 (UTC) को अपडेट किया गया."],[],[],null,["# Firebase App Hosting\n====================\n\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|-----------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\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-----------------\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|---|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\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\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."]]