What about adding an env variable on each of the .rb files on /config/environments?

test.rb -> `ENV['HOST'] = "http://localhost:9292"`

production.rb and development.rb -> `ENV['HOST'] = ""`

You can use `"#{ENV["HOST"]}/remote/faye"` which will return the desired url for each host.

Anyways we will need this ENV variable for mailer eventually