Skip to content

Instantly share code, notes, and snippets.

@ghazel
Created March 17, 2010 10:42
Show Gist options
  • Save ghazel/1931a5a675becab7a13d to your computer and use it in GitHub Desktop.
Save ghazel/1931a5a675becab7a13d to your computer and use it in GitHub Desktop.
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 20 (delta 4), reused 0 (delta 0)
From git@github.com:me/myapp
eb1af78..211ffbb master -> origin/master
Updating eb1af78..211ffbb
Fast forward
config/deploy.rb | 8 ++-
vendor/plugins/fast_remote_cache/LICENSE | 20 +++++++
vendor/plugins/fast_remote_cache/README.rdoc | 48 ++++++++++++++++++
vendor/plugins/fast_remote_cache/init.rb | 1 +
.../recipes/deploy/strategy/fast_remote_cache.rb | 44 ++++++++++++++++
.../recipes/deploy/strategy/utilities/copy.rb | 53 ++++++++++++++++++++
.../fast_remote_cache/recipes/fast_remote_cache.rb | 43 ++++++++++++++++
7 files changed, 214 insertions(+), 3 deletions(-)
create mode 100644 vendor/plugins/fast_remote_cache/LICENSE
create mode 100644 vendor/plugins/fast_remote_cache/README.rdoc
create mode 100644 vendor/plugins/fast_remote_cache/init.rb
create mode 100644 vendor/plugins/fast_remote_cache/lib/capistrano/recipes/deploy/strategy/fast_remote_cache.rb
create mode 100644 vendor/plugins/fast_remote_cache/lib/capistrano/recipes/deploy/strategy/utilities/copy.rb
create mode 100644 vendor/plugins/fast_remote_cache/recipes/fast_remote_cache.rb
* executing `production'
* executing `deploy:long'
triggering before callbacks for `deploy:long'
** transaction: start
* executing `deploy:update_code'
triggering before callbacks for `deploy:update_code'
* executing `crondonkulous:clear_crontab'
* executing "sudo -p 'sudo password: ' crontab -r -u myapp"
servers: ["myhost.com"]
[myhost.com] executing command
command finished
updating the cached checkout on all servers
* executing "git ls-remote git@github.com:me/myapp.git HEAD"
servers: ["myhost.com"]
[myhost.com] executing command
command finished
* executing "if [ -d /data/myapp/shared/cached-copy ]; then cd /data/myapp/shared/cached-copy && git fetch -q origin && git reset -q --hard 9e14d0d0374b211ffbb4792233899a947d745fb8 && git clean -q -d -x -f; else git clone -q git@github.com:me/myapp.git /data/myapp/shared/cached-copy && cd /data/myapp/shared/cached-copy && git checkout -q -b deploy 9e14d0d0374b211ffbb4792233899a947d745fb8; fi"
servers: ["myhost.com"]
[myhost.com] executing command
** [myhost.com :: out] remote: Counting objects: 25, done.
** [myhost.com :: out] remote: Compressing objects: 7% (1/13)
** [myhost.com :: out] remote: Compressing objects: 15% (2/13)
** [myhost.com :: out] remote: Compressing objects: 23% (3/13)
** [myhost.com :: out] remote: Compressing objects: 30% (4/13)
** [myhost.com :: out] remote: Compressing objects: 38% (5/13)
** [myhost.com :: out] remote: Compressing objects: 46% (6/13)
** [myhost.com :: out] remote: Compressing objects: 53% (7/13)
** [myhost.com :: out] remote: Compressing objects: 61% (8/13)
** [myhost.com :: out] remote: Compressing objects: 69% (9/13)
** [myhost.com :: out] remote: Compressing objects: 76% (10/13)
** [myhost.com :: out] remote: Compressing objects: 84% (11/13)
** [myhost.com :: out] remote: Compressing objects: 92% (12/13)
** [myhost.com :: out] remote: Compressing objects: 100% (13/13)
** [myhost.com :: out] remote: Compressing objects: 100% (13/13), done.
** [myhost.com :: out] remote: Total 20 (delta 4), reused 0 (delta 0)
** [myhost.com :: out] Unpacking objects: 5% (1/20)
** [myhost.com :: out] Unpacking objects: 10% (2/20)
** [myhost.com :: out] Unpacking objects: 15% (3/20)
** [myhost.com :: out] Unpacking objects: 20% (4/20)
** [myhost.com :: out] Unpacking objects: 25% (5/20)
** [myhost.com :: out] Unpacking objects: 30% (6/20)
** [myhost.com :: out] Unpacking objects: 35% (7/20)
** [myhost.com :: out] Unpacking objects: 40% (8/20)
** [myhost.com :: out] Unpacking objects: 45% (9/20)
** [myhost.com :: out] Unpacking objects: 50% (10/20)
** [myhost.com :: out] Unpacking objects: 55% (11/20)
** [myhost.com :: out] Unpacking objects: 60% (12/20)
** [myhost.com :: out] Unpacking objects: 65% (13/20)
** [myhost.com :: out] Unpacking objects: 70% (14/20)
** [myhost.com :: out] Unpacking objects: 75% (15/20)
** [myhost.com :: out] Unpacking objects: 80% (16/20)
** [myhost.com :: out] Unpacking objects: 85% (17/20)
** [myhost.com :: out] Unpacking objects: 90% (18/20)
** [myhost.com :: out] Unpacking objects: 95% (19/20)
Unpacking objects: 100% (20/20), done.naws.com :: out] Unpacking objects: 100% (20/20)
** [myhost.com :: out] From git@github.com:me/myapp
** eb1af78..211ffbb master -> origin/master
command finished
copying the cached version to /data/myapp/releases/20100317102524
* executing "ruby /data/myapp/shared/bin/copy.rb /data/myapp/shared/cached-copy /data/myapp/releases/20100317102524 test doc && (echo 9e14d0d0374b211ffbb4792233899a947d745fb8 > /data/myapp/releases/20100317102524/REVISION)"
servers: ["myhost.com"]
[myhost.com] executing command
** [out :: myhost.com] ruby:
** [out :: myhost.com] No such file or directory -- /data/myapp/shared/bin/copy.rb (LoadError)
command finished
*** [deploy:update_code] rolling back
* executing "rm -rf /data/myapp/releases/20100317102524; true"
servers: ["myhost.com"]
[myhost.com] executing command
command finished
failed: "sh -c 'ruby /data/myapp/shared/bin/copy.rb /data/myapp/shared/cached-copy /data/myapp/releases/20100317102524 test doc && (echo 9e14d0d0374b211ffbb4792233899a947d745fb8 > /data/myapp/releases/20100317102524/REVISION)'" on myhost.com
Please wait while the log file is processed
Executing Post Processing Hooks
* executing `ey_logger:upload_log_to_slice'
* executing "mkdir -p /data/myapp/shared/deploy_logs"
servers: ["myhost.com"]
[myhost.com] executing command
command finished
servers: ["myhost.com"]
** sftp upload #<StringIO:0x12782c8> -> /data/myapp/shared/deploy_logs/20100317102524-deploy_long-FAILURE.log
[myhost.com] /data/myapp/shared/deploy_logs/20100317102524-deploy_long-FAILURE.log
[myhost.com] done
* sftp upload complete
Finished Post Processing Hooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment