Skip to content

Instantly share code, notes, and snippets.

@andrewroth
Created April 28, 2011 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewroth/947174 to your computer and use it in GitHub Desktop.
Save andrewroth/947174 to your computer and use it in GitHub Desktop.
--(15:53)-- $ !cap
cap deploy target=prod
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was after_update_code)
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was after_deploy)
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@git.26am.com:ccc360.git master"
* executing "if [ -d /var/www/html/production/pr/shared/cached-copy ]; then cd /var/www/html/production/pr/shared/cached-copy && git fetch -q origin && git reset -q --hard 0f31030c869fae3f180027622043d74dbbba17ca && git submodule -q init && for mod in `git submodule status | awk '{ print $2 }'`; do git config -f .git/config submodule.${mod}.url `git config -f .gitmodules --get submodule.${mod}.url` && echo Synced $mod; done && git submodule -q sync && git submodule -q update && git clean -q -d -x -f; else git clone -q git@git.26am.com:ccc360.git /var/www/html/production/pr/shared/cached-copy && cd /var/www/html/production/pr/shared/cached-copy && git checkout -q -b deploy 0f31030c869fae3f180027622043d74dbbba17ca && git submodule -q init && git submodule -q sync && git submodule -q update; fi"
servers: ["172.16.1.25"]
[172.16.1.25] executing command
** [172.16.1.25 :: out] fatal: Could not parse object '0f31030c869fae3f180027622043d74dbbba17ca'.
command finished
*** [deploy:update_code] rolling back
* executing "rm -rf /var/www/html/production/pr/releases/20110428195334; true"
servers: ["172.16.1.25"]
[172.16.1.25] executing command
command finished
failed: "sh -c 'if [ -d /var/www/html/production/pr/shared/cached-copy ]; then cd /var/www/html/production/pr/shared/cached-copy && git fetch -q origin && git reset -q --hard 0f31030c869fae3f180027622043d74dbbba17ca && git submodule -q init && for mod in `git submodule status | awk '\\''{ print $2 }'\\''`; do git config -f .git/config submodule.${mod}.url `git config -f .gitmodules --get submodule.${mod}.url` && echo Synced $mod; done && git submodule -q sync && git submodule -q update && git clean -q -d -x -f; else git clone -q git@git.26am.com:ccc360.git /var/www/html/production/pr/shared/cached-copy && cd /var/www/html/production/pr/shared/cached-copy && git checkout -q -b deploy 0f31030c869fae3f180027622043d74dbbba17ca && git submodule -q init && git submodule -q sync && git submodule -q update; fi'" on 172.16.1.25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment