Example gRPC server implemented in Ruby
Deploy the app
export DOMAIN=my.cf.app.domain
cf push -f app-manifest.yml --var domain=$DOMAIN
cf push --no-route ruby-grpc-test --buildpack https://github.com/cloudfoundry/ruby-buildpack
# my.cf.app.domain is used as an example for demonstration purpose
cf map-route ruby-grpc-test my.cf.app.domain --hostname ruby-grpc-test --app-protocol http2
grpcurl
needs to be installed separately.
grpcurl -proto example.proto ruby-grpc-test.my.cf.app.domain:443 Example.Run
bundle install --path vendor/bundle
PORT=8080 bundle exec ruby server.rb
grpcurl -proto example.proto -plaintext localhost:8080 Example.Run
bundle install --path vendor/bundle
bundle exec grpc_tools_ruby_protoc -I . --ruby_out . --grpc_out . example.proto