Sha256: a5b40f0a38a702b3b534f442870e38cff9a65f45f8b06e9e57e9d7357f7676d2
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
# Require our base drupal library require 'ash/drupal' configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist) configuration.load do # shared servers typically don't allow `sudo`, # so this will tell `try_sudo` to run as the `:user` instead set :use_sudo, false # -------------------------------------------- # Overloaded Methods # -------------------------------------------- namespace :deploy do desc "Setup shared application directories and permissions after initial setup" task :setup_shared 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 multisites.each_pair do |folder, url| run "mkdir -p #{shared_path}/#{url}/files" end # set correct permissions for a shared hosting environment set_perms_dirs("#{shared_path}") end end end
Version data entries
4 entries across 4 versions & 1 rubygems