我已经使用 firebase 部署评论将网页项目托管到 Filebase 控制台,我现在如何下载项目文件?
i Already hosted a Web page Project to Filebase console using firebase deploy comment , How can i Download the Project files Now?
-
firebase
-
firebase-authentication
-
firebase-realtime-database
-
google-cloud-functions
-
google-cloud-firestore
我已经使用 firebase 部署评论将网页项目托管到 Filebase 控制台,我现在如何下载项目文件?
firebase deploy
您无法下载项目文件...
您可以下载的是您存储在实时数据库或 firestore 数据库中的 data/files。
您也可以在部署之间切换,您可以根据需要回滚到旧部署或更新部署,但您不能下载任何部署。
Firebase 没有全面的“代码拉取”,因此您需要针对每个产品采取不同的方法。
Product
How to get the code/data
Hosting
There is no API to get your hosted files back from Firebase, but you can usually get pretty close by crawling the site. See Pull lost code from Firebase Hosting deployment
Realtime Database
You can either use one of the SDKs, use the REST API (for small databases this may be as simple as adding .json
to the end of the database URL), or you can set up automatic backups and get the data from there.
Firestore
You can either use one of the SDKs or REST API here too, or you get export through the console or gcloud
CLI as explained here
Authentication
You can export all your users through the Admin SDK or the Firebase CLI
Cloud Functions
The closest you can get here is to copy/paste the code from the Google Cloud console as explained here:
firebase
firebase-authentication
firebase-realtime-database
google-cloud-functions
google-cloud-firestore
我已经使用 firebase 部署评论将网页项目托管到 Filebase 控制台,我现在如何下载项目文件?
firebase deploy
您无法下载项目文件...
您可以下载的是您存储在实时数据库或 firestore 数据库中的 data/files。
您也可以在部署之间切换,您可以根据需要回滚到旧部署或更新部署,但您不能下载任何部署。
Firebase 没有全面的“代码拉取”,因此您需要针对每个产品采取不同的方法。
Product | How to get the code/data |
---|---|
Hosting | There is no API to get your hosted files back from Firebase, but you can usually get pretty close by crawling the site. See Pull lost code from Firebase Hosting deployment |
Realtime Database | You can either use one of the SDKs, use the REST API (for small databases this may be as simple as adding .json to the end of the database URL), or you can set up automatic backups and get the data from there. |
Firestore | You can either use one of the SDKs or REST API here too, or you get export through the console or gcloud CLI as explained here |
Authentication | You can export all your users through the Admin SDK or the Firebase CLI |
Cloud Functions | The closest you can get here is to copy/paste the code from the Google Cloud console as explained here: |