Deploy to Firebase
Last updated
Last updated
Deploy to Firebase is available only for PWA-built applications.
For deployment, you need to prepare a project ID
andAPI token
.
At Firebase Console, click Add project.
The project ID is displayed in the red frame below.
Install Firebase CLI according to the Firebase CLI Guide.
After installing the Firebase CLI, get the token with the following command.
You are ready to add the Firebase infomation to Monaca. Please do as follows:
From the Monaca Cloud IDE menu, go to Configure → Deploy Services.
Click Add Deploy Service.
Select Firebase and fill in the required information:
Config Alias
: a unique identifier for each service.
API Token
: API Token provided by Firebase.
Project ID
: Project ID displayed on the Firebase console.
Then, click Add.
Using the registered deployment service, we can start deploying the app to the Firebase.
Please refer to Building for PWA for the build procedure.
After the build is completed, navigate to the build result page.
Execute the deployment from the build result page. Since the registered deployment services show up at the bottom of the page, click the services of your choice to start the distribution process.
See Also: