fix solr setting

This commit is contained in:
Matt K. Fu 2013-06-19 19:23:45 +08:00
parent 2f01b72ed0
commit e037507b0e
2 changed files with 5 additions and 4 deletions

View File

@ -10,12 +10,12 @@ development_gid = ''
w.group = 'rulingcom' w.group = 'rulingcom'
w.interval = 30.seconds w.interval = 30.seconds
w.env = {"RAILS_ENV"=>rails_env} w.env = {"RAILS_ENV"=>rails_env}
w.start = "HOME=#{user_home} RAILS_ENV=#{rails_env} rake -f #{rails_root}/Rakefile sunspot:solr:start" w.start = "HOME=#{user_home} QUEUE=* RAILS_ENV=#{rails_env} rake -f #{rails_root}/Rakefile sunspot:solr:start"
w.keepalive
w.uid = (rails_env == 'production' )? "root" : development_uid w.uid = (rails_env == 'production' )? "root" : development_uid
w.gid = (rails_env == 'production' )? "root" : development_gid w.gid = (rails_env == 'production' )? "root" : development_gid
w.pid_file = "#{rails_root}/solr/pids/production/sunspot-solr-production.pid"
w.log = (rails_env == 'production' )? "/var/log/#{w.group}/#{w.name}.log":"#{rails_root}/log/dev-#{w.name}.log" w.log = (rails_env == 'production' )? "/var/log/#{w.group}/#{w.name}.log":"#{rails_root}/log/dev-#{w.name}.log"
# restart if memory gets too high # restart if memory gets too high
w.transition(:up, :restart) do |on| w.transition(:up, :restart) do |on|

View File

@ -2,6 +2,7 @@ production:
solr: solr:
hostname: localhost hostname: localhost
port: 8982 port: 8982
path: '/solr/orbit' #solr dic
log_level: WARNING log_level: WARNING
development: development: