Merge pull request #18 from mmacedo/environment

Ensure specified environment is used
This commit is contained in:
John Bintz 2012-07-09 05:48:29 -07:00
commit 4d3fb9dfcc
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ module Guard
rails_options << '-u' if options[:debugger]
rails_options << options[:server] if options[:server]
%{sh -c 'cd #{Dir.pwd} && rails s #{rails_options.join(' ')} &'}
%{sh -c 'cd #{Dir.pwd} && RAILS_ENV=#{options[:environment]} rails s #{rails_options.join(' ')} &'}
end
def pid_file