Run Locally:
- Install Ruby
- Install Bundler
gem install bundler
- Install application dependencies
bundle install
- Run the server locally:
bundle exec functions-framework-ruby --source=app.rb --target=hello
Run Locally with Buildpacks & Docker:
pack build --builder=gcr.io/buildpacks/builder sample-functions-framework-ruby
docker run -it -ePORT=8080 -p8080:8080 sample-functions-framework-ruby
Run on Cloud Run: