I am working on a ruby app where the user fills out a form that gets
sent via email. Sometimes I work on the app at my computer at home and
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.
On 11/13/06, [email protected] [email protected] wrote:
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.
–
Zack C.
http://depixelate.com
Or you could have 2 environements, development_home, and development
office, with the majority of settings being common, but with different
smtp stuff.
Fred
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!!