Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Rails QuickStart application for deployment on OpenShift
Ruby Shell JavaScript CSS
tree: 55940866c5

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.openshift
app
config
db
doc
lib
public
script
test
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README
README.md
Rakefile
config.ru

README.md

Rails Sample App on OpenShift

Quickstart rails application for openshift.

Running on OpenShift

Create an account at http://openshift.redhat.com/

Create a rails application

rhc app create -a railsapp -t ruby-1.8

Add mysql support to your application

rhc app cartridge add -a railsapp -c mysql-5.1

Add this upstream rails quickstart repo

cd railsapp
git remote add upstream -m master git://github.com/openshift/rails-example.git
git pull -s recursive -X theirs upstream master

Then push the repo upstream

git push

That's it, you can now checkout your application at:

http://railsapp-$yournamespace.rhcloud.com

Security Considerations

This repository contains configuration files with security related variables.

Since this is a shared repository, any applications derived from it will share those variables, thus reducing the security of your application.

You should follow the directions below and push your updated files to OpenShift immediately.

Procedure

The following table lists files and variables that should be changed.

These values can be replaced by the output of rake secret, which generates a securely random 128 character string.

File Variable
config/initializers/secret_token.rb Railsapp::Application.config.secret_token
config/initializers/session_store.rb Railsapp::Application.config.session_store
Something went wrong with that request. Please try again.