Hi all,
I have a rails app and I run the main rails app on a mongrel server. However, I also have an comet server (using EventMachine) running using the rails environment (so it can access the database). However, Mongrel seems to mess up EventMachine. My question is, how can I detect whether or not I am running the rails environment from the rails server or from the EventMachine server so I can require the mongrel gem only in that case.
Thanks.