Commit ce9506d9

mo khan <mo@mokhan.ca>
2013-06-01 15:04:31
fix the prod deploy target to always sync assets and fire the first request after deployment
1 parent d50de25
Changed files (1)
lib/tasks/deployment.rake
@@ -7,13 +7,12 @@ namespace :deploy do
   desc "deploy to production server"
   task :production, :tag do |t, args|
     tag_to_deploy = args.tag
+    sh "rake assets:precompile"
     if tag_to_deploy.blank?
-      sh "rake assets:precompile"
       sh "cap production deploy:migrations"
     else
-      puts "deploying to production from tag #{tag_to_deploy}"
       sh "cap production deploy:migrations -s tag=#{tag_to_deploy}"
-      sh "curl http://cakeside.com/ > /dev/null"
     end
+    sh "curl http://cakeside.com/ > /dev/null"
   end
 end