« Previous Next »

Thread: HOW TO SETUP IIS7 for Ruby on Rails

Last post 05-23-2008 11:11 AM by Louisss. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 05-18-2008, 6:53 PM

    • Louisss
    • Not Ranked
    • Joined on 05-18-2008, 6:35 PM
    • Posts 3

    HOW TO SETUP IIS7 for Ruby on Rails

    Hi Guys

    i tried to run a rails application on Windows IIS and show the world that Windows is an alternative ..

    i have some problems with the configuration of RubyonRails on IIS7 .. i dont know what is wrong.... i configure all the settings of this page

    notice: i have allready read the Artikel( the article is not actually and doesnt work..it is not applied on a windows server 2008) http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx

     

    http://wiki.rubyonrails.org/rails/pages/HowToConfigureIIS7

     up to  ...

     

    c:\inetpub\wwwroot\myapp\public\web.config

    <handlers>
    <add name="rails-myapp" path="*" verb="*" modules="FastCgiModule" scriptProcessor="c:\ruby\bin\ruby.exe|c:\inetpub\wwwroot\myapp\public\dispatch.fcgi" resourceType="Unspecified" />
    </handlers>
     
     

    I dont get something like a default page or so ..
    i cant understand what is wrong .. how should i configure the web.config file .. should i write this .. i mean should i create it or should it be all ready created...

     

    <configuration>
    <handlers>
    .............................. 

    </handlers>
    </configuration>

     

    can everybody write me or send me a example of a web.config file .. i dont know more..

     
    Thanksss

     

  • 05-21-2008, 11:21 AM In reply to

    Re: HOW TO SETUP IIS7 for Ruby on Rails

    Hi Louisss,

    Open IIS 7 Manager and add Module Mapping following the steps

    Click on your site → Handler Mappings → Add Module Mapping.

    • Request path: (asterisk)
    • Module: FastCgiModule
    • Executable: c:\ruby\bin\ruby.exe|c:\inetpub\wwwroot\myapp\public\dispatch.fcgi development
    • Name: rails-myapp  

    from http://wiki.rubyonrails.org/rails/pages/HowToConfigureIIS7, according to this article, the Background: IIS configuration files section shows the content add by previous steps, it is not required to modify those files any more. For default document, you may need to add index.rb in IIS Manager too.

     

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 05-21-2008, 6:15 PM In reply to

    • Louisss
    • Not Ranked
    • Joined on 05-18-2008, 6:35 PM
    • Posts 3

    Re: HOW TO SETUP IIS7 for Ruby on Rails

    Hi ...

    I have allready done this change ...

    but i get a error messages ...by put this changes <handlers>.......</handlers>

     or how do you mean ...

    where should i add the index.rb ... also i mean .. i put the rails-app on the webserver IIS and than i can start it ... i dont need normaly a index.rb  all the settings is in the config file ... and in this toturial is somethink with the web.config.. but the problem is that .i dont have it ..

     thankssss....

  • 05-22-2008, 9:32 PM In reply to

    Re: HOW TO SETUP IIS7 for Ruby on Rails

    What is <handlers>.......</handlers> in configuration file now?

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 05-23-2008, 11:11 AM In reply to

    • Louisss
    • Not Ranked
    • Joined on 05-18-2008, 6:35 PM
    • Posts 3

    Re: HOW TO SETUP IIS7 for Ruby on Rails

    Hi....

     

    I mean the point [[[  in http://wiki.rubyonrails.org/rails/pages/HowToConfigureIIS7 ]]]

    ------------------------------------------------------------------------ 

    Background: IIS configuration files

    --------------------------------------------------------------------- 

    i should change the c:\inetpub\wwwroot\myapp\public\web.config.

    and write there the handlers. but when i did it i get a error messages ..that tell me that this is a error at this file ... i dont know really what the autor mean that this file " web.config" doesnt exist.....this is the reason i ask here ....

     

    louiss 

Page 1 of 1 (5 items)
Microsoft Communities