Sha256: 00d5c6cfc587deb024d1124fbb666771bd22bfc444fd6351643546ca1ed9b6e7
Contents?: true
Size: 818 Bytes
Versions: 1
Compression:
Stored size: 818 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :ferret 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/ferret_server.yml #{release_path}/config/ferret_server.yml && if [ -d #{release_path}/index ]; then mv #{release_path}/index #{release_path}/index.bak; fi && ln -nfs #{shared_path}/index #{release_path}/index CMD end [:start,:stop,:restart].each do |op| desc "#{op} ferret server" task op, :roles => :app, :except => {:no_release => true} do sudo "/usr/bin/monit #{op} all -g ferret_#{application}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
engineyard-eycap-0.3.3 | lib/eycap/recipes/ferret.rb |