Topic: Creating Ruby App for Intranet

Hi All,

I am new to RoR and was interested in creating an app that I can give access to our internal users only. i.e. via an Intranet, using the same URL that they would access our Intranet. e.g. companyintranet.com/RubyApp

I've looked all over the net, including this forum, for information on this and have found a lot of conflicting information.

I would primarily like to know how I would go about packaging and deploying the app so it can use our intranet URL (as per example above).

Our Intranet is hosted on IIS 6.0 which sits on a Windows SBS Server (2007).

I'm hoping somebody could steer me in the right direction.

Your assistance is greatly appreciated.

Sam

Re: Creating Ruby App for Intranet

As I know there is no way to config RoR on windows. You need to linux for working with RoR.

Alex.

Re: Creating Ruby App for Intranet

Hi Alex,

Not sure where you got that information from but thank you for trying to help.

I've been able to configure RoR on our windows server.

The issue is how to configure it so it integrates with our intranet.

Hopefully someone out there has the appropriate knowledge to assist.

Thanks again.

Re: Creating Ruby App for Intranet

http://stackoverflow.com/questions/7101 … -rails-app

You can add a before_filter in the application controller and check the request IP,and redirect it to a no-access page.

if request.remote_ip !~ /^XXX\.YYY\.ZZZ\./
  redirect_to no_access_url
  return false
end

rails s -e production

The access your app via hostip:3000.

Learning rails, one day at a time.

http://keilmiller.com

Re: Creating Ruby App for Intranet

Yo can define port number and the exact url to access your application in Apache\conf if you use Apache HTTP server. Just create a file httpdproxy.conf in which there should be defined a tag:

<VirtualHost *:8080>
ServerName yourdomain.com
... etc.
</VirtualHost>

Google a little bit to know how to deploy a RoR application.

Last edited by Javix (2013-02-11 08:24:32)

Re: Creating Ruby App for Intranet

Thanks for the suggestions will definately explore these options.

Re: Creating Ruby App for Intranet

Yo can define port number and the exact url to access your application in Apache\conf if you use Apache HTTP server. Just create a file httpdproxy.conf in which there should be defined a tag:
<VirtualHost *:8080>
ServerName yourdomain.com
... etc.
</VirtualHost>
Google a little bit to know how to deploy a RoR application.

Great information