Checkout branches to view particular steps of this sample application.
1-hello-world2-sql-database2-datastore3-files4-auth5-logging (?)(hello world has logging enabled)6-task-queueing7-compute-engine
Ruby on Rails web application on Google Managed VMs.
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.
To run the application, first install dependencies:
$ bundle install
And then run the Rails web server:
$ rails server
$ bundle install
$ rspec spec/
$ gcloud app deploy
- See CONTRIBUTING.md
- See LICENSE