fix solr setting

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

View File

@ -10,11 +10,11 @@ development_gid = ''
w.group = 'rulingcom'
w.interval = 30.seconds
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.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"
# restart if memory gets too high

View File

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