Name: getting-started-ruby
Owner: Google Cloud Platform
Description: A tutorial for creating a complete application using Ruby on Google Cloud Platform
Created: 2015-09-01 18:21:03.0
Updated: 2018-04-29 14:37:34.0
Pushed: 2018-04-20 15:13:24.0
Homepage: https://cloud.google.com/ruby
Size: 454
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Checkout folders to view particular steps of this sample application.
1-hello-world
2-cloud-datastore
2-cloud-sql
2-postgresql
3-cloud-storage
4-auth
5-logging
6-task-queueing
7-compute-engine
Ruby on Rails web application on Google Managed VMs.
To run the application, first install dependencies:
$ bundle install
And then run the Rails web server:
$ rails server
$ bundle install
$ bundle exec rspec
Install the Google Cloud SDK:
$ curl https://sdk.cloud.google.com | bash
And then deploy the application:
$ gcloud app deploy
The application Dockerfile uses the google/ruby-runtime
Docker image
which supports running any Ruby web application.
The ruby-runtime
image requires that your application directory contain the following:
Gemfile
file declaring application dependenciesconfig.ru
rackup file defining your web application