How to Use Rollback in Firebase Hosting
- Using rollback in Firebase Hosting is straightforward and can be done through the Firebase CLI or the Firebase console.
- Below are the approaches which help us to explain the How to Use Rollback in Firebase Hosting
1. Using Firebase CLI
To initiate a rollback, open a terminal and navigate to our Firebase project directory using the following commands
cd your-project-directory
Then, run the command to initiate the rollback.
firebase hosting:rollback
2. Using Firebase Console
- Navigate to the Firebase console and select your project.
- Go to the Hosting section and click on “Deploy history.”
- Find the deployment we want to rollback to and click on “Rollback” next to it.
- Confirm the rollback action and Firebase Hosting will revert to the selected version.
What is Rollback in Firebase Hosting?
Firebase Hosting is a robust application that enables developers to upload and launch their applications effectively and securely. Another great feature used in Firebase Hosting is the ability to rollback which means that if anything goes wrong with the application that has been hosted.
In this article, we will explain What is Rollback in Firebase Hosting, Why is Rollback Important and how it must be implemented for optimal results.
Contact Us