Line 43: |
Line 43: |
| [http://rubygems.org/ RubyGems]is the ruby packaging system. wget the latest version from the [http://rubyforge.org/frs/?group_id=126 RubyForge repository]. Unpack the tar file and install the package as per below: | | [http://rubygems.org/ RubyGems]is the ruby packaging system. wget the latest version from the [http://rubyforge.org/frs/?group_id=126 RubyForge repository]. Unpack the tar file and install the package as per below: |
| | | |
− | wget -c http://rubyforge.org/frs/download.php/43985/rubygems-1.3.4.tgz | + | wget -c http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz |
− | tar xzvf rubygems-1.3.4.tgz | + | tar xzvf rubygems-1.3.5.tgz |
− | cd rubygems-1.3.4 | + | cd rubygems-1.3.5 |
| ruby setup.rb | | ruby setup.rb |
| cd .. | | cd .. |
Line 55: |
Line 55: |
| gem install rails | | gem install rails |
| | | |
− | At the moment (Oct 2008) this will install Rails 2.1.2 onto your system, ready for deploying Rails based applications (or creating your own). | + | At the moment (Jun 2009) this will install Rails 2.3.2 onto your system, ready for deploying Rails based applications (or creating your own). |
| | | |
| ==Creating a New Rails Application== | | ==Creating a New Rails Application== |
Line 82: |
Line 82: |
| | | |
| demo> ruby script/server | | demo> ruby script/server |
− | ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
| + | => Booting WEBrick |
− | => Booting Mongrel (use 'script/server webrick' to force WEBrick) | + | => Rails 2.3.2 application starting on http://0.0.0.0:3000 |
− | => Rails 2.1.2 application starting on http://0.0.0.0:3000 | |
| => Call with -d to detach | | => Call with -d to detach |
| => Ctrl-C to shutdown server | | => Ctrl-C to shutdown server |
− | ** Starting Mongrel listening at 0.0.0.0:3000 | + | [2009-06-30 10:12:48] INFO WEBrick 1.3.1 |
− | ** Starting Rails with development environment...
| + | [2009-06-30 10:12:48] INFO ruby 1.8.5 (2006-08-25) [i386-linux] |
− | ** Rails loaded. | + | [2009-06-30 10:12:48] INFO WEBrick::HTTPServer#start: pid=3424 port=3000 |
− | ** Loading any Rails specific GemPlugins
| |
− | ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).
| |
− | ** Rails signals registered. HUP => reload (without restart). It might not work well. | |
− | ** Mongrel 1.1.5 available at 0.0.0.0:3000
| |
− | ** Use CTRL-C to stop.
| |
| | | |
| And open up your browser to http://your_server_url:3000 and admire the welcome page of your new Rails application! | | And open up your browser to http://your_server_url:3000 and admire the welcome page of your new Rails application! |