Deploying Google Cloud Functions in 5 easy steps

Valerii Iatsko
Dec 4, 2017 · 2 min read
Image for post
Image for post
brew install google-cloud-sdk
gcloud auth login
gcloud config set project <project_name>
exports.fetch = function(req, res) { res.send('Hello, world!'); }
gcloud beta functions deploy <your_function_name> --entry-point=<your_entry_point_name_exported_by_index.js> --trigger-http --stage-bucket=<your_stage_bucket>
gcloud beta functions deploy react-server-side-rendering-service --entry-point=render --trigger-http --stage-bucket=my-awesome-startup-gcf-bucket

Google Cloud - Community

Google Cloud community articles and blogs

Valerii Iatsko

Written by

Senior Engineer @ Microsoft • Views are my own

Google Cloud - Community

A collection of technical articles and blogs published or curated by Google Cloud Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.

Valerii Iatsko

Written by

Senior Engineer @ Microsoft • Views are my own

Google Cloud - Community

A collection of technical articles and blogs published or curated by Google Cloud Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store