noob question about development mode

you should be able to access your app in development mode from any browser on your network :

just type in the ip address of your server (the one with the rails app) and port 3000 (the default port when running the built-in server in dev mode)

eg if your server ip address is 192.168.0.1 then

http://192.168.0.1:3000 from any browser on your network

hope this helps !

Rob

Rob Zolkos wrote:

you should be able to access your app in development mode from any browser on your network :

just type in the ip address of your server (the one with the rails app) and port 3000 (the default port when running the built-in server in dev mode)

eg if your server ip address is 192.168.0.1 then

http://192.168.0.1:3000 from any browser on your network

hope this helps !

Rob

On Jan 20, 4:35�pm, Kyle Wakefield <rails-mailing-l...@andreas-s.net>

That helps a lot! The guide I've been following never actually explained why port 3000 was to be used, and I never got it working because I had ignorantly specified port 80 for the Apache virtual host I added. I've added a new virtual host for development that uses port 3000 and everything works the way you explained. Thank you for the help, Rob.

Okay, I think that I may have spoken too soon.

I've been following this guide http://guides.rubyonrails.org/getting_started_with_rails.html and nothing seems to work. Can anyone recommend a better guide for a beginner?

To get port 3000 to work correctly I configured Apache with the following virtual host:

Listen 3000 NameVirtualHost 192.168.0.1:* <VirtualHost 192.168.0.1:*>    ServerName blog.cadimize.com    DocumentRoot /home/toper/www/cadimize/blog/public </VirtualHost>

This makes development mode SEEM like it works, I can access my app from port 3000, but when there's an error it gets logged to config/production.log (so it's not in actually development mode).

When I use the WEBrick server, development mode does work, and errors are logged to config/development.log. But then I can only view my app at 127.0.0.1. When WEBrick starts it says: "Rails 2.1.0 application started on http://127.0.0.1:3000"

My questions are: Does development mode only work with the WEBrick server? If so, I assume I need to configure it to use an address other than 127.0.0.1? If not, does someone know what I could be missing in my Apache configuration that is keeping me from accessing development mode?

Kyle Wakefield wrote:

If not, does someone know what I could be missing in my Apache configuration that is keeping me from accessing development mode?

Are you using Passenger (mod_rails)? If so, you need to add the "RailsEnv development" option to your VirtualHost config.

are you trying to develop on your local machine?

Interesting way of doing things, and I'm not 100% sure what your OS environments on your machines are, but it really is kind of nice to be able to develop on separate machines with something as simple as "thin start" on the machine and the using Git to handle the source.

Just an idea.