Created
January 29, 2013 14:45
-
-
Save aarongrando/4664753 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
➜ pifa-2013 git:(master) cap deploy | |
* 2013-01-29 09:37:56 executing `deploy' | |
* 2013-01-29 09:37:56 executing `deploy:update' | |
** transaction: start | |
* 2013-01-29 09:37:56 executing `deploy:update_code' | |
updating the cached checkout on all servers | |
executing locally: "git ls-remote [email protected]:redtettemer/PIFA-2013.git HEAD" | |
command finished in 1019ms | |
* executing "if [ -d /var/www/rails_apps/PIFA/shared/cached-copy ]; then cd /var/www/rails_apps/PIFA/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 727257991e0d9ff97d6ebe039c7872ae249f6351 && git clean -q -d -x -f; else git clone -q [email protected]:redtettemer/PIFA-2013.git /var/www/rails_apps/PIFA/shared/cached-copy && cd /var/www/rails_apps/PIFA/shared/cached-copy && git checkout -q -b deploy 727257991e0d9ff97d6ebe039c7872ae249f6351; fi" | |
servers: ["vs829458.blueboxgrid.com"] | |
Password: | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 6181ms | |
copying the cached version to /var/www/rails_apps/PIFA/releases/20130129144141 | |
* executing "rsync -lrpt --exclude=\".git/*\" /var/www/rails_apps/PIFA/shared/cached-copy/ /var/www/rails_apps/PIFA/releases/20130129144141 && (echo 727257991e0d9ff97d6ebe039c7872ae249f6351 > /var/www/rails_apps/PIFA/releases/20130129144141/REVISION)" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 1218ms | |
* 2013-01-29 09:41:42 executing `deploy:finalize_update' | |
triggering before callbacks for `deploy:finalize_update' | |
* 2013-01-29 09:41:42 executing `bundle:install' | |
* executing "cd /var/www/rails_apps/PIFA/releases/20130129144141 && bundle install --gemfile /var/www/rails_apps/PIFA/releases/20130129144141/Gemfile --path /var/www/rails_apps/PIFA/shared/bundle --deployment --quiet --without development test" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 1543ms | |
* 2013-01-29 09:41:43 executing `deploy:assets:symlink' | |
* executing "rm -rf /var/www/rails_apps/PIFA/releases/20130129144141/public/assets && mkdir -p /var/www/rails_apps/PIFA/releases/20130129144141/public && mkdir -p /var/www/rails_apps/PIFA/shared/assets && ln -s /var/www/rails_apps/PIFA/shared/assets /var/www/rails_apps/PIFA/releases/20130129144141/public/assets" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 368ms | |
* executing "chmod -R -- g+w /var/www/rails_apps/PIFA/releases/20130129144141 && rm -rf -- /var/www/rails_apps/PIFA/releases/20130129144141/public/system && mkdir -p -- /var/www/rails_apps/PIFA/releases/20130129144141/public/ && ln -s -- /var/www/rails_apps/PIFA/shared/system /var/www/rails_apps/PIFA/releases/20130129144141/public/system && rm -rf -- /var/www/rails_apps/PIFA/releases/20130129144141/log && ln -s -- /var/www/rails_apps/PIFA/shared/log /var/www/rails_apps/PIFA/releases/20130129144141/log && rm -rf -- /var/www/rails_apps/PIFA/releases/20130129144141/tmp/pids && mkdir -p -- /var/www/rails_apps/PIFA/releases/20130129144141/tmp/ && ln -s -- /var/www/rails_apps/PIFA/shared/pids /var/www/rails_apps/PIFA/releases/20130129144141/tmp/pids" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 405ms | |
triggering after callbacks for `deploy:update_code' | |
* 2013-01-29 09:41:44 executing `deploy:assets:precompile' | |
triggering before callbacks for `deploy:assets:precompile' | |
* 2013-01-29 09:41:44 executing `deploy:assets:update_asset_mtimes' | |
* executing "[ -e /var/www/rails_apps/PIFA/shared/assets/manifest.yml ] && cat /var/www/rails_apps/PIFA/shared/assets/manifest.yml || echo" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 623ms | |
** Updating mtimes for ~2848 assets... | |
servers: ["vs829458.blueboxgrid.com"] | |
** sftp upload #<StringIO:0x007f8ca215d548> -> /var/www/rails_apps/PIFA/TOUCH_ASSETS | |
[vs829458.blueboxgrid.com] /var/www/rails_apps/PIFA/TOUCH_ASSETS | |
[vs829458.blueboxgrid.com] done | |
* sftp upload complete | |
* executing "cat /var/www/rails_apps/PIFA/TOUCH_ASSETS | while read asset; do touch -cm -- \"$asset\"; done && rm -f -- /var/www/rails_apps/PIFA/TOUCH_ASSETS" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 3650ms | |
* 2013-01-29 09:41:49 executing `deploy:secondary_symlink' | |
* executing "ln -nfs /var/www/rails_apps/PIFA/shared/config/database.yml /var/www/rails_apps/PIFA/releases/20130129144141/config/database.yml" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 322ms | |
* executing "ln -nfs /var/www/rails_apps/PIFA/shared/config/unicorn.rb /var/www/rails_apps/PIFA/releases/20130129144141/config/unicorn.rb" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 331ms | |
* executing "ls -x /var/www/rails_apps/PIFA/releases" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 325ms | |
* executing "cd -- /var/www/rails_apps/PIFA/releases/20130129144141 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile && cp -- /var/www/rails_apps/PIFA/shared/assets/manifest.yml /var/www/rails_apps/PIFA/releases/shared/assets_manifest.yml" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 162842ms | |
* 2013-01-29 09:44:33 executing `deploy:web:update_maintenance_page' | |
* executing "rm -rf /var/www/rails_apps/PIFA/shared/system/maintenance/; true" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 328ms | |
* executing "mkdir -p /var/www/rails_apps/PIFA/releases/20130129144141/public/maintenance" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 326ms | |
* executing "touch /var/www/rails_apps/PIFA/releases/20130129144141/public/maintenance/index.html.disabled" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 323ms | |
* executing "cp -r /var/www/rails_apps/PIFA/releases/20130129144141/public/maintenance /var/www/rails_apps/PIFA/shared/system/" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 322ms | |
* 2013-01-29 09:44:35 executing `deploy:create_symlink' | |
* executing "rm -f /var/www/rails_apps/PIFA/current && ln -s /var/www/rails_apps/PIFA/releases/20130129144141 /var/www/rails_apps/PIFA/current" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 322ms | |
** transaction: commit | |
* 2013-01-29 09:44:35 executing `deploy:restart' | |
* executing "kill -s USR2 `cat /var/www/rails_apps/PIFA/shared/pids/unicorn.pid`" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 328ms | |
triggering after callbacks for `deploy' | |
* 2013-01-29 09:44:35 executing `deploy:cleanup' | |
* executing "ls -xt /var/www/rails_apps/PIFA/releases" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 324ms | |
** keeping 5 of 6 deployed releases | |
* executing "rm -rf /var/www/rails_apps/PIFA/releases/20130128210258" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 441ms | |
triggering after callbacks for `deploy:cleanup' | |
* 2013-01-29 09:44:36 executing `deploy:assets:clean_expired' | |
* executing "for manifest in /var/www/rails_apps/PIFA/releases/*/assets_manifest.yml; do cat -- \"$manifest\" 2> /dev/null && printf ':::' || true; done" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 781ms | |
** Fetched 2 manifests from /var/www/rails_apps/PIFA/releases/*/assets_manifest.yml | |
** Writing required assets to /var/www/rails_apps/PIFA/REQUIRED_ASSETS... | |
servers: ["vs829458.blueboxgrid.com"] | |
** sftp upload #<StringIO:0x007f8ca2156310> -> /var/www/rails_apps/PIFA/REQUIRED_ASSETS | |
[vs829458.blueboxgrid.com] /var/www/rails_apps/PIFA/REQUIRED_ASSETS | |
[vs829458.blueboxgrid.com] done | |
* sftp upload complete | |
** Removing assets that haven't been deployed for 10080 minutes... | |
* executing "cd -- /var/www/rails_apps/PIFA/shared/assets/ && for f in $( find * -mmin +10080 -type f | LC_COLLATE=C sort | LC_COLLATE=C comm -23 -- - /var/www/rails_apps/PIFA/REQUIRED_ASSETS ); do echo \"Removing unneeded asset: $f\"; rm -f -- \"$f\"; done; rm -f -- /var/www/rails_apps/PIFA/REQUIRED_ASSETS" | |
servers: ["vs829458.blueboxgrid.com"] | |
[vs829458.blueboxgrid.com] executing command | |
command finished in 364ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment