Browse files

capistrano task to run trend updating script, triggered after deploy

  • Loading branch information...
1 parent 234d1b5 commit e642ab8ed91bae14bdb3d5381e3d7cd5bf35312c @stevenwilkin committed Sep 1, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 Capfile
View
8 Capfile
@@ -22,3 +22,11 @@ namespace :deploy do
run "touch #{current_path}/tmp/restart.txt"
end
end
+
+# ensure data is available for the app after deployment
+desc "Get Trend Data"
+task :get_trends do
+ run "#{current_path}/lib/get_trends.rb"
+end
+
+after "deploy", "get_trends"

0 comments on commit e642ab8

Please sign in to comment.