Sha256: e4a7ccc2c43afd16c51418954b83c5de6669a2ffee3ecf688998f17d6966b580

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

Capistrano::Configuration.instance.load do
  namespace :passenger do
    desc "|capistrano-recipes| Restart Rails app running under Phusion Passenger by touching restart.txt"
    task :bounce, :roles => :app do
      run "#{sudo} touch #{current_path}/tmp/restart.txt"
    end

    desc "|capistrano-recipes| Inspect Phusion Passenger's memory usage."
    task :memory, :roles => :app do
      run "sudo passenger-memory-stats"
    end
        
    desc "|capistrano-recipes| Inspect Phusion Passenger's internal status."
    task :status, :roles => :app do
      run "sudo passenger-status"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dark-capistrano-recipes-0.8.1 lib/recipes/passenger.rb