3 ms·
1) If you're using Google Cloud Functions, you might also want to check out the Running Functions Locally doc page. [1] (There's an NPM library [2] - @google-cl
by aceatgoogle 5y ago
1) If you're using Google Cloud Functions, you might also want to check out the Running Functions Locally doc page. [1] (There's an NPM library [2] - @google-cloud/functions-framework - that handles the scaffolding for you.)
Note that this library only supports scaffolding one function at a time per process - so you'd have to create a separate process [and use a separate port] for each function you're using. (This includes event-based functions - everything is HTTP under the hood, and this library is no different.)
2) Deployment time - you're definitely not the first to bring this up. :) We're working internally on improving deployment times.
(Disclosure - per my username, I work at GCP.)
[1] https://cloud.google.com/functions/docs/running/function-frameworks https://cloud.google.com/functions/docs/running/function-fra...
[2] https://www.npmjs.com/package/@google-cloud/functions-framework https://www.npmjs.com/package/@google-cloud/functions-framew...
- wussboy 5y agoI appreciate this comment. I spent 4 hours updating-deploy-test-repeat with GCP last night trying to track down a couple of niggling errors and it was a nightmare. I'd have killed to be able to step through it just once with a debugger and everything would have been fixed.