Detect Application Server

I am working on a ruby app where the user fills out a form that gets other times at work. I need to setup the development environment so that the app detects which server it is currently running on and uses the appropriate smtp host. I am relatively new to Ruby on Rails, so am not sure of the best way to do this. Thanks for any help.

I would probably keep it simple and just check the hostname of the machine by making a system call in development.rb

`hostname` # => 'dev_box1'

Hope this helps.

Thanks, and I am familiar withe development.rb file, but am not sure how I would implement your suggestion. Thanks again.

Thanks. That makes sense!!! Duh, how did I miss that idea. Thanks again!!