Updated the gist with rails 4 open shift