Skip to content

Commit

Permalink
Task to remove unused front controller according to symfony environment
Browse files Browse the repository at this point in the history
  • Loading branch information
borisguery committed Apr 7, 2014
1 parent 6de0def commit a94a3d4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/capistrano/tasks/symfony.rake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ namespace :symfony do
end
end
end
task :clear_front_controllers do
namespace :app do
desc "Fix app environment"
task :fix_environment do
on roles(:web) do |host|
within release_path do
execute "find #{release_path.join('web/')} -maxdepth 1 -name 'app*.php' | grep -v '#{fetch(:symfony_env)}' | while read app_file; do rm $app_file; done;"
end
end
end
end
end
namespace :assets do
desc 'Symfony assets deployment'
task :install do
Expand Down

0 comments on commit a94a3d4

Please sign in to comment.