fix template for solar error. gitingore

This commit is contained in:
Matt K. Fu 2013-08-28 10:37:19 +08:00
parent 353039dcd0
commit 8f393e1079
2 changed files with 4 additions and 2 deletions

4
.gitignore vendored
View File

@ -14,7 +14,9 @@ public/uploads/**/*
solr/data solr/data
tmp/**/* tmp/**/*
uploads/**/* uploads/**/*
config/*.god
log/*.gz
tmp/restart.txt
*.swp *.swp
*.pid *.pid
*.lck *.lck

View File

@ -9,7 +9,7 @@ development_gid = ''
w.name = "<%= @resque_namespace.nil? ? "" : "#{@resque_namespace}-" %>sunspot-solr" w.name = "<%= @resque_namespace.nil? ? "" : "#{@resque_namespace}-" %>sunspot-solr"
w.group = 'rulingcom' w.group = 'rulingcom'
w.pid_file = "#{rails_root}/solr/pids/production/sunspot-solr-production.pid" w.pid_file = "#{rails_root}/solr/pids/production/sunspot-solr-production.pid"
w.interval = 30.seconds
w.env = {"RAILS_ENV"=>rails_env,"HOME"=>user_home ,"RAILS_ENV"=>rails_env} w.env = {"RAILS_ENV"=>rails_env,"HOME"=>user_home ,"RAILS_ENV"=>rails_env}
w.start = "rake -f #{rails_root}/Rakefile sunspot:solr:start" w.start = "rake -f #{rails_root}/Rakefile sunspot:solr:start"
w.stop = "sudo kill -KILL $(cat #{w.pid_file})" w.stop = "sudo kill -KILL $(cat #{w.pid_file})"