Ruby on Rails Thursday, May 19, 2011


On 19 May 2011, at 12:32, frankblizzard wrote:

we have a mac osx server in the intranet where i want to host my rails
application. I installed successfully passenger on the machine.

Now when I am working on the server, I can access the rails app
through the url, e.g. test.local

But when I put the same URL in the browser in one of the other
computers, I can't reach it. I can access it though the IP though,
192.168.2.200:3000

What else do I need to do in order to make it visible in the intranet?
Some router seetup?

My guess is that although the MacOS X Server has the DNS running and (more or less configured), you are not using that DNS on your clients. You have two options here: either configure your DHCP server (router probably) to use your OS X server as a DNS or set it manually on all your clients in the Network control panel.

BTW, why would you run Apache or nginx on port 3000 when you can just run everything on the same webserver?

on the macserver is already running the default osx wiki etc. this can
be adressed from other computer as http://myserver/ - it would be nice
if i can setup passenger to use a subfolder of this adress, e.g.
http://myserver/myapp/

It's called Apache (or Nginx) configuration and has very little to nothing to do with Rails. There's plenty of resources on the web.



Best regards


Peter De Berdt


No comments:

Post a Comment