Firebase deploy slow and getting a warning

╄→гoц情女王★ 提交于 2019-12-23 22:17:17

问题


When I try to run `Firebase deploy', it stucks at this line of code

i  deploying functions
i  functions: ensuring necessary APIs are enabled...
✔  functions: all necessary APIs are enabled

the firebase init and firebase login are doing fine but firebase deploy keeps stuck. My firebase version is 3.18.4 and im currently using ubuntu 17.10.

EDIT: and after waiting for about an hour it diplays this line of code

FIREBASE WARNING: auth() was canceled: Auth token is expired.

Am I doing something wrong?. I am new to Firebase and I need some tips/ advice on why this happening


回答1:


Here is a tip, that might help you. Give it a try and tell me if it resolves your issue.

Always use these commands instead of just firebase deploy

firebase deploy --only hosting

firebase deploy --only functions <<- use this in ur case. Also make sure your in the directory /functions of your project where you ran your firebase init




回答2:


Sometimes Firebase services may be down, which would prevent you from deploying your code. If you can't deploy, check this site and see if at least all services are up and running: https://status.firebase.google.com/



来源:https://stackoverflow.com/questions/49853427/firebase-deploy-slow-and-getting-a-warning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!