Created
March 8, 2010 04:38
-
-
Save adamhjk/324872 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cookbooks/thefader_wp/libraries/deploy_wp.rb | |
class Chef | |
class Provider | |
class Deploy | |
class Revision | |
class Wordpress < Chef::Provider::Deploy::Revision | |
def enforce_ownership | |
end | |
end | |
end | |
end | |
end | |
end | |
# cookbooks/thefader_wp/recipes/default.rb | |
deploy_revision "/u/apps/thefader_wp" do | |
repo "[email protected]:cornerstone/thefader_wp.git" | |
revision "HEAD" # "HEAD" or "TAG_for_1.0" or (subversion) "1234" | |
user "deploy" | |
shallow_clone true | |
action :force_deploy # or :rollback | |
restart_command "touch tmp/restart.txt" | |
symlink_before_migrate "public/wp-config.php" => "public/wp-config.php", | |
"public/.htaccess" => "public/.htaccess", | |
"public/wp-content/cache" => "public/wp-content/cache", | |
"public/wp-content/advanced-cache.php" => "public/wp-content/advanced-cache.php" | |
provider Chef::Provider::Deploy::Revision::Wordpress | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment