btw, i'm running cap 2.3 , with the trunk version of recipes/deploy/
scm/git.rb file (to fix the "parse object error")

here's what cap deploy generates: (replaced appname with 'foo')

$ cap deploy
  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
  * refreshing local cache to revision
70a84ddf3f3e6ec181220a9fedeb5f46d0e6ce8a at /tmp/foo
    executing locally: cd /tmp/foo && git fetch origin && git reset --
hard 70a84ddf3f3e6ec181220a9fedeb5f46d0e6ce8a
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
From file:///Users/jonathan/rails/foo
   85c9f2d..70a84dd  master     -> origin/master
Checking out files: 100% (4941/4941), done.
HEAD is now at 70a84dd still trying copy_cache
  * copying cache to deployment staging area /tmp/20080604210715
    compressing /tmp/20080604210715 to /tmp/20080604210715.tar.gz
    executing locally: tar czf 20080604210715.tar.gz 20080604210715
    servers: ["www.foo.com"]
 ** sftp upload #<StringIO:0x17053f4> -> /tmp/20080604210715.tar.gz
    [www.foo.com] /tmp/20080604210715.tar.gz


the .tar.gz file is 10MB


On Jun 4, 5:01 pm, linoj <[EMAIL PROTECTED]> wrote:
> Hi, I think I have my deploy.rb setup right to only copy the changed
> files. But when i cap deploy it tars up the whole repo each time. What
> am i doing wrong?
>
> # changed to protect the innocent
> set :application,   "foo"
> set :domain,        "www.foo.com"
> set :user,          "user"
>
> # local git repos
> set :scm,           :git
> set :branch,        "master"
> set :repository,    "file://."
> set :deploy_via,    :copy
> set :copy_cache,    true
> set :copy_exclude,  [".git"]
> set :git_shallow_clone, 1
>
> set :use_sudo,      false
> set :deploy_to,     "/home/#{user}/apps/#{application}"
> set :chmod755,      "app config db lib public vendor script script/*
> public/disp*"
>
> set :mongrel_port,  "4028"
> set :mongrel_nodes, "1"
>
> role :app,          domain
> role :web,          domain
> role :db,           domain, :primary => true
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to