fix solr setting
This commit is contained in:
parent
c4ec6c1ac9
commit
cd55f2aac2
|
@ -10,12 +10,12 @@ 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.log = (rails_env == 'production' )? "/var/log/#{w.group}/#{w.name}.log":"#{rails_root}/log/dev-#{w.name}.log"
|
||||
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
|
||||
w.transition(:up, :restart) do |on|
|
||||
|
|
|
@ -2,6 +2,7 @@ production:
|
|||
solr:
|
||||
hostname: localhost
|
||||
port: 8982
|
||||
path: '/solr/orbit' #solr dic
|
||||
log_level: WARNING
|
||||
|
||||
development:
|
||||
|
|
Loading…
Reference in New Issue