# Reset Rails-specific stuff.

set :shared_children, %w()

namespace :deploy do
  task :finalize_update, :except => { :no_release => true } do
    if fetch(:group_writable, true)
      sudo "chgrp -R #{group} #{latest_release}"
      run "chmod -R g+w #{latest_release}"
    end
  end
  task :migrate do end
  task :start do end
  task :stop do end
  task :restart do end
end

# Reset Rails-specific stuff.

set :shared_children, %w()

namespace :deploy do
  task :finalize_update, :except => { :no_release => true } do
    if fetch(:group_writable, true)
      sudo "chgrp -R #{deploy_group} #{latest_release}"
      run "chmod -R g+w #{latest_release}"
    end
  end
  task :migrate do end
  task :start do end
  task :stop do end
  task :restart do end
end

Use :deploy_group instead of :group
Use :deploy_group instead of :group