Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

capistrano task to run trend updating script, triggered after deploy

  • Loading branch information...
commit e642ab8ed91bae14bdb3d5381e3d7cd5bf35312c 1 parent 234d1b5
Steven Wilkin authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 Capfile
8 Capfile
View
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.