I have deployed some code on firebase cloud function from another machine. I have changed the machine and I want to pull the existing cloud function here. When I do
firebase login and then firebase init and select the same project as existing but it still creates empy index.js file
Asked
Active
Viewed 3,617 times
6
Asadullah Ali
- 1,056
- 14
- 31
-
1Note, this is now doable it seems: https://stackoverflow.com/a/43916900/2057171 – Albert Renshaw Mar 20 '20 at 02:06
1 Answers
5
Deployment only works one direction - from a computer to the cloud. There is currently no way to get your code back from the cloud onto a computer. Instead, you should be using some sort of source control to manage your code.
Doug Stevenson
- 297,357
- 32
- 422
- 441
-
4Note, this is now doable it seems: https://stackoverflow.com/a/43916900/2057171 – Albert Renshaw Mar 20 '20 at 02:06