Permalink
Browse files

Run migrations even if the revision was previously deployed, this acc…

…ounts for deploying, changing framework_env and deploying again, you want the migrations to run
  • Loading branch information...
1 parent 5dbd039 commit 6d9e999850433fec91e185d1606fbb21c4e1a1fc Andy Delcambre committed Jun 10, 2009
Showing with 3 additions and 1 deletion.
  1. +1 −1 Rakefile
  2. +2 −0 lib/chef-deploy/cached_deploy.rb
View
@@ -5,7 +5,7 @@ require 'date'
require 'spec/rake/spectask'
GEM = "chef-deploy"
-GEM_VERSION = "0.1.3"
+GEM_VERSION = "0.1.4"
AUTHOR = "Ezra Zygmuntowicz"
EMAIL = "Your Email"
HOMEPAGE = "http://example.com"
@@ -13,6 +13,8 @@ def deploy
end
if check_current_revision_and_noop_if_same(@configuration[:revision])
+ Chef::Log.info "Revision is already deployed, running migrations"
+ migrate
symlink
return
end

0 comments on commit 6d9e999

Please sign in to comment.