Commit 711c1cb1

mo khan <mo@mokhan.ca>
2014-08-23 15:08:57
sync assets to s3 during deployment.
1 parent 5324e6a
Changed files (1)
config/deploy.rb
@@ -57,6 +57,18 @@ namespace :deploy do
     end
   end
 
+  desc 'Sync assets'
+  task :sync_assets do
+    on roles(:web) do
+       within release_path do
+         with rails_env: fetch(:rails_env) do
+           execute :rake, 'assets:sync'
+         end
+       end
+    end
+  end
+
+  after :publishing, :sync_assets
   after :publishing, :restart
 
   after :restart, :clear_cache do