Ruby, Rails, InstantRails, MqSql, Web Development

instantrails is the fast track deployment and running of ruby and rails platform

-installing and configuring instantrails

Boot windows, login as Administrator.

visit http://www.7-zip.org/ and download the latest zip utility

Run the exe and it installs a useful tool. Extracting through other tools is known to have some bugs with end results.

Now get InstantRails from

http://instantrails.rubyforge.org/wiki/wiki.pl

Click on Download the latest, save the zip file on disk.

Right click on the zip file, select "7-zip", and

"Extract to InstantRails-2.0-win" directory (or a simple name like InstantRails, or Rails, but remember the dir name!)

Open Windows-Explorer. Go to

C:\windows\system32\drivers\etc

Edit the file "hosts". If this file is protected, rightclick, pick "properties" and change the permission. Then rightclick again on the filename and open with NotePad.

Add the the line to that file at the end-

127.0.0.1 typo (typo is the name we will use for a test website).

You can also edit the above "hosts" file through Rails but if you run into permission problems you need to follow my method shown above.

[You can also add the ones below to prevent flashy ads thrown on your browser by yahoo and other advertisement servers, but this is not part of the Rails course! You can use it in your home machine but remember to adjust the output from your local webserver to something nice to replace the flashy ads]

127.0.0.1       ad.doubleclick.net
127.0.0.1       ad.yieldmanager.com
127.0.0.1       http300.content.ru4.com
127.0.0.1       http300.edge.ru4.com
127.0.0.1       in.yimg.com
127.0.0.1       ads.yimg.com
127.0.0.1       us.yimg.com
127.0.0.1       us.i1.yimg.com
127.0.0.1       ads.pointroll.com
127.0.0.1       bs.serving-sys.com
127.0.0.1       view.atdmt.com
127.0.0.1       l.yimg.com
127.0.0.1       balancer.netdania.com
Go to http://dev.mysql.com/downloads/gui-tools/5.0.html

Follow the "pick a mirror" link, select any of the "FTP" links and download mysqladmin GUI tool.

It is a windows installer file (.msi extension). Click on it and install it.

Note: you can access the mysql data server through

(a) phpmyadmin (b) mysqladmin (c) through regular programs

Go to C:\InstantRails-2.0-win (or other directory installed for Rails)

Locate "InstantRails.exe" and Run it! It will start a Rails Manager.

It will show "Apache Started". If "MySql" shows as "Pending", click on MySql and "Kill" the process. It will restart.

Now Ruby, Rails, MySql and related servers are running.

RightClick on Taskbar, start "Task Manager" and see at least three processes running-
InstantRails, MySql, Apache (2 or more Apaches).

Lets Recap

InstantRails - Rails Manager
Apache - full scale web server
Mongrel - little webserver for local use (replaces old webrick package)
Typo - our local domain name for testing and production
mysql - database server
mysqladmin - GUI for mysql server
phpmyadmin - another GUI/ programming interface for mysql server

Go to ruby-page 2