Skip to content

Latest commit

 

History

History
 
 

README.md

Bookshelf

Checkout branches to view particular steps of this sample application.

  • 1-hello-world
  • 2-sql-database
  • 2-datastore
  • 3-files
  • 4-auth
  • 5-logging (?) (hello world has logging enabled)
  • 6-task-queueing
  • 7-compute-engine

Hello, World!

Ruby on Rails web application on Google Managed VMs.

Dependencies

To run the Hello World app, first ensure that you have Ruby 1.9.3 or newer. Ruby 2.0 and above is recommended.

For information on installing Ruby, view Installing Ruby on the Ruby website.

If you are using a system version of ruby, you will need to use sudo to install gems.

To install gems locally for your user, add the following to your ~/.bashrc or ~/.bash_profile:

export GEM_HOME="$HOME/.gems"
export GEM_PATH="$HOME/.gems"
export PATH="$GEM_PATH/bin:$PATH"

Or gems can be installed using the --user-install flag.

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
$ rspec spec/

To deploy to App Engine Managed VMs

$ gcloud app deploy

Contributing changes

Licensing