First run of InstantRails

January 3, 2006 at 9:51 pm 3 comments

I have downloaded v1.0 Preview 8 of InstantRails (there was also a release candidate version but the link is giving me a 404). After unzipping, you just need to run instantrails.exe in the home directory. There are 2 indicators – MySQL and Apache. Apache gave me trouble, giving an error: “Apache cannot be runned : another Web server use the Web port”.

(For your info: I have Windows 2000 SP3 and all the latest patches + Norton Firewall + dLink router with firewall enabled)

First you need to check if you have IIS enabled and running and will need to stop that. Here is how you do that on Windows 2000 / XP:

* Right click My Computer
* Left click Manage
* Expand Services and Applications. Check if Internet Information Service is there.
* If it is then expand it. Expand Websites. Left click on Default Website
* Then Right click Default Websit and if STOP is available to click on then IIS is running on the port InstantRails wants to use. (taken from here)

I knew that I had no IIS running, so I had to go to Configure -> Apache in InstantRails, search for the following in the httpd.conf file:

#
# Port: The port to which the standalone server listens.  Certain firewall
# products must be configured before Apache can listen to a specific port.
# Other running httpd servers will also interfere with this port.  Disable
# all firewall, security, and other services if you encounter problems.
# To help diagnose problems use the Windows NT command NETSTAT -a
#
Port 80

and change “Port 80” to “Port 3000”, then save the config file. After that, I hit Apache button in the InstantRails main window and it started. Norton Firewall gave me a warning about apache.exe accessing internet, and I gave it full rights (not sure if this is secure, but I want to start trying out Ruby already!).

Voila, everything is running. I access 127.0.0.1 and it gives me a “Coming Soon!” message. Now, I know that Apache is working. So the set up was quite painless. Let’s do some test coding! 😉

Advertisements

Entry filed under: Uncategorized.

First impressions First Ruby code

3 Comments Add your own

  • 1. Craig  |  January 29, 2006 at 6:44 am

    Hello,

    I just set up InstantRails myself and everything worked out well. The only thing is that I’d like to be able to access my rails sites from the net, via my ip. As in, I’d like to display one of my rails apps instead of simply “coming soon!”. I haven’t been able to figure out how to do this anywhere online. Do you know how to do it?

    Reply
  • 2. allaboutruby  |  February 7, 2006 at 6:22 pm

    Craig: I would recommend to get yourself a hosting that supports Ruby on Rails for production environment. Otherwise you should set up the Apache server to accept outside requests and you will also need to set up the DNS server, to route from your domain name to your computer.

    Reply
  • 3. Acronyms  |  July 17, 2007 at 6:39 am

    Nice and simple.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Recent posts

Starting to learn Rails?

Kindle

Get Kindle - the best e-book reader, that I personally use, and the only one that you can read on the beach - very useful: Kindle Wireless Reading Device (6" Display, Global Wireless, Latest Generation)

%d bloggers like this: