lib/demonz/drupal.rb in capistrano-demonz-0.0.13 vs lib/demonz/drupal.rb in capistrano-demonz-0.0.14
- old
+ new
@@ -257,17 +257,17 @@
task :run_update_scripts, :roles => :web, :except => { :no_release => true } do
update_script_file = File.join(latest_release, 'sites', 'all', 'scripts', release_name, 'update.sh')
if remote_file_exists?(update_script_file)
# Make sure script is executable.
- run "#{try_sudo} chmod g+x #{update_script_file}"
- run update_script_file
+ run "#{try_sudo} chmod go+x #{update_script_file}"
+ run "cd #{latest_release} && #{update_script_file}"
end
end
desc "Set release name for site"
task :update_visible_release_name, :roles => :web, :except => { :no_release => true } do
- run "#{drush_bin} -r #{latest_release} vset --yes site_release_version `git describe --tags`"
+ run "cd #{latest_release} && #{drush_bin} -r #{latest_release} vset --yes site_release_version `git describe --tags`"
end
desc "Compile SASS (using Compass) for this release"
task :compile_sass, :roles => :web, :except => { :no_release => true } do
themes = fetch(:themes, [])