examples/google-ruby-simple-http-endpoint at master · serverless/examples · GitHub
Skip to content

Latest commit

 

History

History
 
 

Folders and files

README.md

Simple HTTP Endpoint Example

This example demonstrates how to setup a simple Ruby HTTP GET endpoint.

Use Cases

  • Wrapping an existing internal or external endpoint/service

Development

The GCF Ruby environment has the following requirements:

  • The code to be invoked must be defined in the app.rb file using FunctionsFramework
  • Any dependencies must be specified in the Gemfile

https://cloud.google.com/functions/docs/concepts/ruby-runtime https://github.com/GoogleCloudPlatform/functions-framework-ruby

Deploy

Run the following to deploy:

serverless deploy