http://rubyonrails.org/documentation
-----------------------------------------------
部署rubyonrails
Passenger
Automate with
-----------------------------------------------
部署rubyonrails
Passenger
aka mod_rails
The easiest deployment setup for Rails is Phusion Passenger aka mod_rails. It's a module for nginx and Apache that automatically manages the back end. Just setup, launch, and enjoy.
Proxy setups
If you need more fine-grained control over your deployment setup,
the common option is to use a front-end server like nginx and Apache
combined with a proxy relay like HAProxy to cluster of Unicorns. That's how Basecamp and a lot of other high-end deployments run.
JRuby on Rails
JRuby brings Rails to the Java Virtual Machine. This means that you can deploy Rails applications on app servers like Glassfish or Jetty. You can use Warbler to package your Rails application as a standard WAR. Great for slipping into the enterprise.
Automate with
Capistrano
Capistrano brings
deployment automation to Rails whether you're working with a single
server or on a cluster of dozens. It was extracted from the 37signals
tool chain (like Rails) by core alumni Jamis Buck.
Hosting
While Rails hosting is now common place, there's a handful of
dedicated Rails hosting companies that have been around for a long time
and supporting the community: Heroku, Rails Machine, Brightbox, and Engine Yard. If you're just looking for a VPS, we recommend Rackspace (who gracefully donated slices for us to run Rails infrastructure on) or Linode.
from http://rubyonrails.org/deploy/
------------------------------------------------
安装ruby,从而安装rails
Ruby
We recommend Ruby 2.0.0 for use with Rails.
We stopped supporting Ruby 1.8.x after Rails 3.2. Ruby 1.9.2+ will be supported until Rails 5.
Source: Compile it yourself
Windows installer: Ruby, popular extensions, editor
OS X 10.5+: Included with developer tools
(then do "gem update rails")
We recommend managing your Ruby installation through rbenv. It's an easy way to run multiple versions for different applications and update when a new release is made.
Source: Compile it yourself
Windows installer: Ruby, popular extensions, editor
OS X 10.5+: Included with developer tools
(then do "gem update rails")
We recommend managing your Ruby installation through rbenv. It's an easy way to run multiple versions for different applications and update when a new release is made.
Rails
With Ruby installed, you can install all of Rails and its dependencies through RubyGems on the command line:
gem install rails
New versions of Rails can be installed the same way.
Make your application
Create your application skeleton and start the server:
rails new path/to/your/new/application
cd path/to/your/new/application
rails server
You're running Ruby on Rails! Follow the instructions on http://localhost:3000.
cd path/to/your/new/application
rails server
Editors
TextMate on OS X has long been the favored Rails editor,
but the classic editors are still going strong.
See VIM for Rails and Emacs for Rails.
For a full-on IDE, check out JetBrains RubyMine.
from http://rubyonrails.org/download/