Firebase CLI deploy functions - Error: Failed to initialize a region

拜拜、爱过 提交于 2019-12-05 05:57:23

Ok, here's what I found, a little weird:

firebase list shows all the firebase projects you have access to, BUT they are not already available (i.e. added as alias to your current folder project).

Even if the firebase-tools CLI allows you to do firebase deploy --project myproject1, if you do not have myproject1 declared in .firebaserc => it will fail with the weird region error above.

To fix this, I found that there are 2 options:

  • firebase use --add (will trigger an interactive list)
  • firebase use myproject1

=> and then firebase deploy --project myproject1 will work (with or without the optional --only functions)

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