SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2006
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Instant Rails question

    I'm playing around with RoR at work a bit and I want to show off my app to some co-workers. The problem is that I can't seem to get anyone else to pull up the app on their browser except me (local machine). I'm using instant rails. Any help or links to any help are much appreciated.
    Apple Mac HQ - Apple/Mac News, Reviews, and More

  2. #2
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    Oklahoma
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By default I think the built in apache instance binds to localhost. You'll need to edit the apache configuration to bind to all addresses, or to your specific network address. You can check the apache site for more information on that.

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2005
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think Sgarissta is right.

    Try editing the httpd.conf file in the folder:

    \InstantRails\conf_files\

    First, search for this text:

    #
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, in addition to the default. See also the <VirtualHost>
    # directive.
    #
    #Listen 3000
    #Listen 12.34.56.78:80
    #Listen 127.0.0.1:80
    Listen 80

    This is the default setup that instant rails uses. Try adding a line with your ip address.

    You may also need to modify the ServerName

    So find this text:
    #
    # ServerName allows you to set a host name which is sent back to clients for
    # your server if it's different than the one the program would get (i.e., use
    # "www" instead of the host's real name).
    #
    # Note: You cannot just invent host names and hope they work. The name you
    # define here must be a valid DNS name for your host. If you don't understand
    # this, ask your network administrator.
    # If your host doesn't have a registered DNS name, enter its IP address here.
    # You will have to access it by its address (e.g., http://123.45.67.89/)
    # anyway, and this will make redirections work in a sensible way.
    #
    # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
    # machine always knows itself by this address. If you use Apache strictly for
    # local testing and development, you may use 127.0.0.1 as the server name.
    #
    ServerName localhost

    And throw in your IP address as the server name. Hopefully that will do it. There may also be some config changes necessary in the Virtual Host setup as well.

    At least this is a start!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •