5

I read the Cloud Fucntions docs and successfully deployed and it's working great. In my Firebase I have two projects, debug and production and they have different package names.

I can't find out how to deploy the function to my production project only to the debug project. Where do I change the target for deploy since I am singed in using google into Firebase and the projects debug/production is there.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Tord Larsen
  • 2,670
  • 8
  • 33
  • 76

1 Answers1

15

You need to add the other project first. Open a terminal in your functions folder (not in the subfolder functions) and write firebase use --add after that you can select the project via firebase use YourProjectName

djnose
  • 917
  • 7
  • 19
  • ok I will try, I actually changed this file .firebaserc but that did not fly – Tord Larsen Mar 28 '18 at 17:59
  • 1
    Confirming this solution worked for my use case. I have 2 Firebase projects for the same Android project. One is for testing, the other for production. I deployed the same index.js code to both Firebase projects with this solution. No issues. – trod Feb 05 '19 at 00:35