lib/ash/magento.rb in capistrano-ash-1.1.7 vs lib/ash/magento.rb in capistrano-ash-1.1.8

- old
+ new

@@ -22,11 +22,12 @@ # -------------------------------------------- namespace :deploy do desc "Setup local files necessary for deployment" task :setup_local do # attempt to create files needed for proper deployment - system("touch app/etc/local.xml.staging app/etc/local.xml.production") + system("cp .htaccess htaccess.dist") + system("touch app/etc/local.staging.xml app/etc/local.production.xml") end desc "Setup shared application directories and permissions after initial setup" task :setup_shared do # remove Capistrano specific directories @@ -56,11 +57,11 @@ run "rm -Rf #{latest_release}/sitemap" run "rm -Rf #{latest_release}/var" # set the file and directory permissions ash.fixperms - run "chmod 400 #{latest_release}/pear" - run "chmod 400 #{latest_release}/mage" + run "chmod 400 #{latest_release}/pear" if remote_file_exists?("#{latest_release}/pear") + run "chmod 400 #{latest_release}/mage" if remote_file_exists?("#{latest_release}/mage") run "chmod o+w #{latest_release}/app/etc" end namespace :web do desc "Disable the application and show a message screen" \ No newline at end of file