lib/ash/zend_doctrine.rb in capistrano-ash-1.1.8 vs lib/ash/zend_doctrine.rb in capistrano-ash-1.1.10
- old
+ new
@@ -38,11 +38,11 @@
end
end
namespace :zend do
desc "Symlink shared directories"
- task :symlink, :except => { :no_release => true } do
+ task :symlink, :roles => :web, :except => { :no_release => true } do
run "ln -nfs #{shared_path}/var #{current_release}/var"
run "ln -nfs #{shared_path}/system #{current_release}/public/system"
run "mv #{current_release}/application/configs/application.ini.dist #{current_release}/application/configs/application.ini"
run "ln -nfs #{current_release}/application/Application.#{stage}.php #{current_release}/application/Application.php"
run "mv #{current_release}/public/htaccess.#{stage} #{current_release}/public/.htaccess"
@@ -59,10 +59,10 @@
end
end
namespace :doctrine do
desc "Run Doctrine Migrations"
- task :migrate, :except => { :no_release => true } do
+ task :migrate, :roles => :web, :except => { :no_release => true } do
puts "Running Doctrine Migrations..."
run "cd #{current_release} && ./scripts/doctrine-cli migrate"
end
end
end