johnbintz / guard-rails

No longer maintained. Latest version is at https://github.com/ranmocy/guard-rails
35 stars 53 forks source link

Ensure specified environment is used #18

Closed mmacedo closed 12 years ago

mmacedo commented 12 years ago

If for any reason RAILS_ENV was set to test this command will start a Rails server with test environment:

rails s -e development

But this one will start with development environment:

RAILS_ENV=development rails s

I am not sure who is at fault here, but this ensures guard-rails will always use the environment specified by the environment option.

johnbintz commented 12 years ago

Works for me. Thanks!