Closed BinaryMuse closed 13 years ago
Thanks, looks good. I'll get this pulled in a bit later.
I'm wondering though if we should use RAILS_ENV
instead of RACK_ENV
. Even though it is a rack app, it should always match the Rails environment to ensure it loads the yaml file consistently. Also the production environment is required by Faye to get eventmachine stuff working in Thin so using RACK_ENV
doesn't have much use.
It should also default to "development" like Rails does.
Ah, good call, that makes perfect sense. I'll push the changes shortly.
This is great. I've closed my pull request as this one is much better :-)
(This is further implementation of pull request #6 based on the comments there.)
This patch removes the initializer from the generator and instead instructs the gem to load its configuration via a YAML configuration file. The file can contain just settings:
or may contain environments:
By default,
faye.ru
loads the environment based on theRACK_ENV
environment variable, which is set via the-E
flag when runningrackup
.Let me know if I overlooked anything!