Ruby 2.6 and 2.7 are now generally available.

Specifying dependencies

Dependencies for Ruby applications are declared in a Gemfile file.

For example:

source ""

gem "rails"

You can use any Linux-compatible Ruby package in the App Engine standard environment, including packages that require native (C) extensions.

The Ruby runtime will automatically install all dependencies declared in your Gemfile file during deployment.

Installing a web framework

You'll need to use a web framework to enable your app to serve web requests. You can use any Ruby web framework including the following:

To use a particular web framework, specify a startup command in your app.yaml file:

runtime: ruby
entrypoint: rails server

Installing the Google Cloud Client library

The Google Cloud Client Library for Ruby is a client library for accessing Google Cloud services that significantly reduces the boilerplate code you have to write. The library provides high-level API abstractions so they're easier to understand and means you spend more time creating code that matters to you.

To install the library locally:

gem install google-cloud

The client library can automatically handle authentication for you locally as well by using Cloud SDK:

gcloud auth login