diff --git a/lib/acts_as_solr/tasks/solr.rake b/lib/acts_as_solr/tasks/solr.rake index 2ffa459..5549bb3 100644 --- a/lib/acts_as_solr/tasks/solr.rake +++ b/lib/acts_as_solr/tasks/solr.rake @@ -27,7 +27,7 @@ namespace :solr do 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