close do-end block in environments.rb