Browse Source

[COOK-537] default to a shallow_clone deploys

Seth Chisamore 13 years ago
parent
commit
e9b12f75df
3 changed files with 3 additions and 2 deletions
  1. 1 0
      recipes/django.rb
  2. 1 1
      recipes/php.rb
  3. 1 1
      recipes/rails.rb

+ 1 - 0
recipes/django.rb

@@ -148,6 +148,7 @@ deploy_revision app['id'] do
   deploy_to app['deploy_to']
   action app['force'][node.app_environment] ? :force_deploy : :deploy
   ssh_wrapper "#{app['deploy_to']}/deploy-ssh-wrapper" if app['deploy_key']
+  shallow_clone true
   purge_before_symlink([])
   create_dirs_before_symlink([])
   symlinks({})

+ 1 - 1
recipes/php.rb

@@ -134,7 +134,7 @@ deploy_revision app['id'] do
   deploy_to app['deploy_to']
   action app['force'][node.app_environment] ? :force_deploy : :deploy
   ssh_wrapper "#{app['deploy_to']}/deploy-ssh-wrapper" if app['deploy_key']
-
+  shallow_clone true
   purge_before_symlink([])
   create_dirs_before_symlink([])
   symlinks({})

+ 1 - 1
recipes/rails.rb

@@ -169,7 +169,7 @@ deploy_revision app['id'] do
   environment 'RAILS_ENV' => node.app_environment
   action app['force'][node.app_environment] ? :force_deploy : :deploy
   ssh_wrapper "#{app['deploy_to']}/deploy-ssh-wrapper" if app['deploy_key']
-
+  shallow_clone true
   before_migrate do
     if app['gems'].has_key?('bundler')
       link "#{release_path}/vendor/bundle" do