Thursday, January 27, 2011

Starting Ruby on Rails on Linux

Kinda followed this tutorial. I don't really know what I'm doing here, but I got the Ruby Demo to run.

> sudo apt-get install ruby
> ruby -v
       ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
> sudo apt-get install rubygems
> sudo apt-get install rails
> cd demo
> ruby script/server
       => Booting WEBrick
       => Rails 2.3.5 application starting on http://127.0.0.1:3000
       => Call with -d to detach
       => Ctrl-C to shutdown server
       [2011-01-27 03:59:46] INFO  WEBrick 1.3.1
       [2011-01-27 03:59:46] INFO  ruby 1.8.7 (2010-06-23) [i686-linux]
       [2011-01-27 03:59:46] INFO  WEBrick::HTTPServer#start: pid=4587 port=3000

Go to a browser and type in "http://localhost:3000" and you should see:

No comments:

Post a Comment