ahmetb / getting-started-ruby

A tutorial for creating a complete application using Ruby on Google Cloud Platform

Home Page:https://cloud.google.com/ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started Ruby

Travis Build Status

Checkout folders to view particular steps of this sample application.

Ruby on Rails web application on Google Managed VMs.

Run

To run the application, first install dependencies:

$ bundle install

And then run the Rails web server:

$ rails server

To run the tests

$ bundle install
$ bundle exec rspec

To deploy to App Engine Managed VMs

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 dependencies
  • config.ru rackup file defining your web application

Contributing changes

Licensing

About

A tutorial for creating a complete application using Ruby on Google Cloud Platform

https://cloud.google.com/ruby

License:Apache License 2.0


Languages

Language:Ruby 78.4%Language:HTML 17.1%Language:Shell 1.6%Language:CSS 1.5%Language:JavaScript 1.4%