lib/sunspot/solr/server.rb in sunspot_solr-2.1.0 vs lib/sunspot/solr/server.rb in sunspot_solr-2.1.1
- old
+ new
@@ -28,11 +28,11 @@
super(*args)
end
#
# Bootstrap a new solr_home by creating all required
- # directories.
+ # directories.
#
# ==== Returns
#
# Boolean:: success
#
@@ -97,10 +97,11 @@
command << "-Djetty.port=#{port}" if port
command << "-Djetty.host=#{bind_address}" if bind_address
command << "-Dsolr.data.dir=#{solr_data_dir}" if solr_data_dir
command << "-Dsolr.solr.home=#{solr_home}" if solr_home
command << "-Djava.util.logging.config.file=#{logging_config_path}" if logging_config_path
+ command << "-Djava.awt.headless=true"
command << '-jar' << File.basename(solr_jar)
FileUtils.cd(File.dirname(solr_jar)) do
exec(*command)
end
end
@@ -178,10 +179,10 @@
:verbose => true
)
end
end
- #
+ #
# Create new solr_home, config, log and pid directories
#
# ==== Returns
#
# Boolean:: success