Commit 2ae21b72

mo k <mo@mokhan.ca>
2012-10-06 21:51:02
if a tag isn't specified when deploying to prod then just use the last staging tag to deploy.
1 parent 46aa248
Changed files (1)
lib/tasks/deployment.rake
@@ -8,8 +8,9 @@ namespace :deploy do
   task :production, :tag do |t, args|
     tag_to_deploy = args.tag
     if tag_to_deploy.blank?
-      puts "please specify the name of the tag to deploy"
-      puts "E.g. rake deploy:production['staging-2012-06-02-1-mo-user-settings']"
+      #puts "please specify the name of the tag to deploy"
+      #puts "E.g. rake deploy:production['staging-2012-06-02-1-mo-user-settings']"
+      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}"