lib/acts_as_solr/tasks/solr.rake in jbasdf-muck-solr-0.4.1 vs lib/acts_as_solr/tasks/solr.rake in jbasdf-muck-solr-0.4.2
- old
+ new
@@ -25,10 +25,10 @@
#STDERR.close
exec cmd
end
end
sleep(5)
- File.open("#{SOLR_PIDS_PATH}/#{ENV['RAILS_ENV']}_pid", "w"){ |f| f << pid} if windows
+ File.open("#{SOLR_PIDS_PATH}/#{ENV['RAILS_ENV']}_pid", "w"){ |f| f << pid} unless windows
puts "#{ENV['RAILS_ENV']} Solr started successfully on #{SOLR_PORT}, pid: #{pid}."
end
end
end