Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pull the already deployed cloud function from Firebase Cloud function [duplicate]

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

like image 219
Asadullah Ali Avatar asked Jun 23 '17 11:06

Asadullah Ali


People also ask

Where are Cloud Functions stored?

By default, functions run in the us-central1 region. Note that this may be different from the region of an event source, such as a Cloud Storage bucket. If you need to change the region where a function runs, follow the recommendations in this section for each function trigger type.

How many requests can handle a single cloud function?

By default each Cloud Run container instance can receive up to 80 requests at the same time; you can increase this to a maximum of 1000. Although you should use the default value, if needed you can lower the maximum concurrency.


1 Answers

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.

like image 197
Doug Stevenson Avatar answered Oct 23 '22 04:10

Doug Stevenson