Browse files

finishes

  • Loading branch information...
1 parent 6e30b73 commit 37a4fa6b083b82572dec779ca88fde52070f98f8 @everzet committed Jun 3, 2010
Showing with 12 additions and 11 deletions.
  1. +12 −11 config/capifony.rb
View
23 config/capifony.rb
@@ -42,13 +42,8 @@ def prompt_with_default(var, default)
task :finalize_update, :except => { :no_release => true } do
run "chmod -R g+w #{latest_release}" if fetch(:group_writable, true)
run "mkdir -p #{latest_release}/cache"
-
- # Symlink directories
create_dirs
- # Rotate log file
- symfony.log.rotate
-
if fetch(:normalize_asset_timestamps, true)
stamp = Time.now.utc.strftime("%Y%m%d%H%M.%S")
asset_paths = %w(css images js).map { |p| "#{latest_release}/web/#{p}" }.join(" ")
@@ -111,7 +106,9 @@ def prompt_with_default(var, default)
desc "Optimizes a project for better performance"
task :optimize do
- run "php #{latest_release}/symfony project:optimize"
+ prompt_with_default(:application, "frontend")
+
+ run "php #{latest_release}/symfony project:optimize #{application}"
end
desc "Clears all non production environment controllers"
@@ -135,7 +132,10 @@ def prompt_with_default(var, default)
desc "Rotates an application's log files"
task :rotate do
- run "php #{latest_release}/symfony log:rotate"
+ prompt_with_default(:application, "frontend")
+ prompt_with_default(:env, "prod")
+
+ run "php #{latest_release}/symfony log:rotate #{application} #{env}"
end
end
@@ -170,7 +170,8 @@ def prompt_with_default(var, default)
end
after "deploy:finalize_update", # After finalizing update:
- "symlink:db", # 1. Symlink database
- "symfony:cc", # 2. Clear cache
- "symfony:plugin:publish_assets", # 3. Publish plugin assets
- "symfony:project:permissions" # 4. Fix project permissions
+ "symlink:db", # 1. Symlink database
+ "symfony:cc", # 2. Clear cache
+ "symfony:plugin:publish_assets", # 3. Publish plugin assets
+ "symfony:project:permissions" # 4. Fix project permissions
+ "symfony:project:clear_controllers" # 5. Clear controllers

0 comments on commit 37a4fa6

Please sign in to comment.