Sha256: 6ecfeb084b96ae2157168306ac0c3d8ee111b49fa503a3e229b3a5b12c4ef958

Contents?: true

Size: 895 Bytes

Versions: 32

Compression:

Stored size: 895 Bytes

Contents

# Require our base drupal library
require 'ash/wordpress'

configuration = Capistrano::Configuration.respond_to?(:instance) ?
  Capistrano::Configuration.instance(:must_exist) :
  Capistrano.configuration(:must_exist)

configuration.load do
  # --------------------------------------------
  # Overloaded Methods
  # --------------------------------------------
  namespace :deploy do
    desc "Setup shared application directories and permissions after initial setup"
    task :setup_shared, :roles => :web do
      # remove Capistrano specific directories
      run "rm -Rf #{shared_path}/log"
      run "rm -Rf #{shared_path}/pids"
      run "rm -Rf #{shared_path}/system"
      
      # create shared directories
      run "mkdir -p #{shared_path}/uploads"
      run "mkdir -p #{shared_path}/cache"

      # set correct permissions
      run "chmod -R 755 #{shared_path}/*"
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
capistrano-ash-1.4.1 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.4.0 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.3.7 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.3.6 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.3.5 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.3.4 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.3.3 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.3.1 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.3.0 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.2.4 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.2.3 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.2.2 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.2.1 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.2.0 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.19 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.18 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.17 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.16 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.15 lib/ash/wordpress_shared_hosting.rb
capistrano-ash-1.1.14 lib/ash/wordpress_shared_hosting.rb