对站点运行 deploy
命令只会让终端闪烁,就好像它被困在一些繁重的操作中一样。
什么都不会发生。我实际上没有尝试使用 --debug
标志运行。
我首先想到的是我是公司代理人。所以我设置了一个“纯”连接,但它仍然没有连接。那么问题是什么?
最佳答案
打开 firebase-debug.log
文件,它包含您可能会在其中发现错误的日志。
类似这样的日志
[debug] [2020-09-26T07:53:15.852Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2020-09-26T07:53:15.854Z] > authorizing via signed-in user
[debug] [2020-09-26T07:53:15.855Z] [iam] checking project testproject for permissions ["firebase.projects.get","firebasehosting.sites.update"]
[debug] [2020-09-26T07:53:15.861Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2020-09-26T07:53:15.861Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token
就我而言,这是由于互联网连接速度慢,因此无法建立连接。
关于database - firebase 部署缓慢且无响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37964840/