Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby and Rails setup script for Linux and OSX

branch: master

Merge pull request #41 from melvkim/master

Replace '$MACHTYPE' with '$system_os' to enhance grepping os type.
latest commit cd6572e7a5
Josh Frye authored
Octocat-spinner-32 recipes Don't assume the user wants ImageMagick March 07, 2013
Octocat-spinner-32 Update January 16, 2014
Octocat-spinner-32 Replace '$MACHTYPE' with '$system_os' to enhance grepping os type. March 07, 2014

Rails Ready

Ruby and Rails setup script for Linux and OSX

Distros supported:

  • Ubuntu
  • CentOS 5 (utilizes the Fedora EPEL repo)
  • OSX (requires XCode/GCC to be installed. Install command line tools via XCode->preferences to install GCC)

To run:


  • wget --no-check-certificate && bash


  • curl -O && bash

The script will ask if you want to build Ruby from source or install RVM

What this gives you:

  • Homebrew (OSX only)
  • Ruby 2.1.0 latest patch level (installed to /usr/local/bin/ruby) or RVM running 2.1.0 latest patch level
  • libs needed to run Rails (sqlite, mysql, etc)
  • Bundler, Passenger, and Rails gems
  • Git

Please note: If you are running on a super slow connection your sudo session may timeout and you'll have to enter your password again. If you're running this on an EC2 or RS instance it shouldn't be problem.

Just install either NGINX or Apache, then run passenger-install-nginx-module or passenger-install-apache2-module from bash prompt, upload your app, point your vhost config to your apps public dir and go!

Rails Ready now supports a "plugin" type system. The distro is detected and a corresponding "recipe" file is pulled down to run the distro specific setup steps. Check the recipes dir to see if your distro is supported. If you would like to add support for a system fork the repo, write a recipe, and submit a pull request. Take a look at recipes/ for an idea of what to model your recipe after.

If you use this or have any suggestions let me know or @joshfng on Twitter

Something went wrong with that request. Please try again.