rails ready great script for auto install rails3.2

阅读更多
Rails Ready
Ruby and Rails setup script for Linux and OSX
Distros supported:

    Ubuntu 10.04 LTS, 10.10 and 11.04
    CentOS 5 (utilizes the Fedora EPEL repo)
    OSX (requires XCode to be installed)

Run this on a fresh install. It WILL update your system!
To run:
Linux

    wget --no-check-certificate https://raw.github.com/joshfng/railsready/master/railsready.sh && bash railsready.sh

OSX

    curl -O https://raw.github.com/joshfng/railsready/master/railsready.sh && bash railsready.sh

The script will ask if you want to build Ruby from source or install RVM
What this gives you:

    An updated system (Linux only)
    Homebrew (OSX only)
    Ruby 1.9.3 latest patch level (installed to /usr/local/bin/ruby) or RVM running 1.9.3 latest patch level
    Imagemagick
    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, run passenger-install-nginx-module or passenger-install-apache-module, upload your app, point your vhost config to your apps public dir and go!

A note about RVM+passenger+nginx: Passenger installed via RVM can't locate the OpenSSL package installed on Ubuntu. A user contributed fix is as follows


https://github.com/joshfng/railsready/blob/5206441282650cadbf72e2adcc535da8aa495a73/README.md

你可能感兴趣的:(rails ready great script for auto install rails3.2)