I'll be using Windows Server, Oracle 10g, Mongrel & Pen. Many thanks to Brian Hogan for his informative talk at RailsConf which made the whole process very easy. See Deployment Strategies for Rails on Windows Servers for more detailed information.
Part 1: Installing Rails
Install Ruby
Download the one click windows installer. When installing, uncheck 'SciTE' – there are better editors available. Also, make sure ‘Enable RubyGems’ is checked. This is the package manager for Ruby, used to install Rails itself and myriad of other stuff.
Install to 'c:\program files\ruby' (or your installation path), then add ‘c:\program files\ruby\bin’ to your PATH for command line stuff.
Goto ‘Control Panel\System’, select the ‘Advanced’ tab and click ‘Environment Variables’. Look under user variables. If PATH isn’t already defined, click ‘New’.
- Variable name = ‘PATH’
- Variable value = ‘%PATH%;c:\program files\ruby\bin’
Install Rails
Now that we have ruby installed, we can use RubyGems to install rails.
gem install rails --include-dependencies
Yes, it is that easy.
My-first-app
Create your application skeleton and start the server:
rails path/to/your/new/application
cd path/to/your/new/application
ruby script/server
Congratulations! You’re now on Rails. Onto Part 2: My-first-app with Oracle...
1 comment:
i am currently working with a ruby on rails development company as a freelancer and just want to thanks your post really saves me :D thanks buddy keep up the good work.
waiting for the further posts.
Post a Comment