Sha256: 9e3464c5bf54a66779004a0fbc5a1b31bc12341b6116afd4299617fa3419451d
Contents?: true
Size: 1.39 KB
Versions: 1
Compression:
Stored size: 1.39 KB
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :solr do desc "After update_code you want to symlink the index and ferret_server.yml file into place" task :symlink_configs, :roles => :app, :except => {:no_release => true} do run <<-CMD cd #{release_path} && ln -nfs #{shared_path}/config/solr.yml #{release_path}/config/solr.yml CMD end [:start,:stop,:restart].each do |op| desc "#{op} ferret server" task op, :roles => :app, :only => {:solr => true} do sudo "/usr/bin/monit #{op} all -g solr_#{application}" end end namespace :tail do desc "Tail the Solr logs this environment" task :logs, :roles => :app, :only => {:solr => true} do run "tail -f /var/log/engineyard/solr/#{application}.log" do |channel, stream, data| puts # for an extra line break before the host name puts "#{channel[:server]} -> #{data}" break if stream == :err end end desc "Tail the Solr error logs this environment" task :errors, :roles => :app, :only => {:solr => true} do run "tail -f /var/log/engineyard/solr/#{application}.err.log" do |channel, stream, data| puts # for an extra line break before the host name puts "#{channel[:server]} -> #{data}" break if stream == :err end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
engineyard-eycap-0.3.3 | lib/eycap/recipes/solr.rb |