Skip to content

Instantly share code, notes, and snippets.

@jsqu99
Created June 3, 2013 23:45
Show Gist options
  • Save jsqu99/5702442 to your computer and use it in GitHub Desktop.
Save jsqu99/5702442 to your computer and use it in GitHub Desktop.
~/src/genosha$: be cap prestaging deploy
triggering load callbacks
* 2013-06-03 19:41:23 executing `prestaging'
triggering start callbacks for `deploy'
* 2013-06-03 19:41:23 executing `multistage:ensure'
* 2013-06-03 19:41:23 executing `deploy'
* 2013-06-03 19:41:23 executing `deploy:update'
** transaction: start
* 2013-06-03 19:41:23 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@github.com:junyoed/genosha.git topic/fix-constants"
command finished in 1495ms
* executing "if [ -d /home/deploy/genosha/shared/cached-copy ]; then cd /home/deploy/genosha/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard ee1c68790c781acbcff4e47ee5937dbcfbd1d0d6 && git clean -q -d -x -f; else git clone -q git@github.com:junyoed/genosha.git /home/deploy/genosha/shared/cached-copy && cd /home/deploy/genosha/shared/cached-copy && git checkout -q -b deploy ee1c68790c781acbcff4e47ee5937dbcfbd1d0d6; fi"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 2153ms
copying the cached version to /home/deploy/genosha/releases/20130603234127
* executing "cp -RPp /home/deploy/genosha/shared/cached-copy /home/deploy/genosha/releases/20130603234127 && (echo ee1c68790c781acbcff4e47ee5937dbcfbd1d0d6 > /home/deploy/genosha/releases/20130603234127/REVISION)"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 408ms
* 2013-06-03 19:41:28 executing `deploy:finalize_update'
triggering before callbacks for `deploy:finalize_update'
* 2013-06-03 19:41:28 executing `bundle:install'
* executing "cd /home/deploy/genosha/releases/20130603234127 && bundle install --gemfile /home/deploy/genosha/releases/20130603234127/Gemfile --path /home/deploy/genosha/shared/bundle --deployment --quiet --without development test"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 2353ms
triggering after callbacks for `bundle:install'
* 2013-06-03 19:41:30 executing `symlink_database_yml'
* executing "rm /home/deploy/genosha/releases/20130603234127/config/database.yml"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 276ms
* executing "ln -sfn /home/deploy/genosha/shared/config/database.yml\\\n /home/deploy/genosha/releases/20130603234127/config/database.yml"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 244ms
* 2013-06-03 19:41:30 executing `deploy:assets:symlink'
* executing "rm -rf /home/deploy/genosha/releases/20130603234127/public/buy/ && mkdir -p /home/deploy/genosha/releases/20130603234127/public/buy/ && mkdir -p /home/deploy/genosha/shared/assets && ln -s /home/deploy/genosha/shared/assets /home/deploy/genosha/releases/20130603234127/public/buy/"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 251ms
* executing "chmod -R -- g+w /home/deploy/genosha/releases/20130603234127 && rm -rf -- /home/deploy/genosha/releases/20130603234127/public/buy/system && mkdir -p -- /home/deploy/genosha/releases/20130603234127/public/buy/ && ln -s -- /home/deploy/genosha/shared/system /home/deploy/genosha/releases/20130603234127/public/buy/system && rm -rf -- /home/deploy/genosha/releases/20130603234127/log && ln -s -- /home/deploy/genosha/shared/log /home/deploy/genosha/releases/20130603234127/log && rm -rf -- /home/deploy/genosha/releases/20130603234127/tmp/pids && mkdir -p -- /home/deploy/genosha/releases/20130603234127/tmp/ && ln -s -- /home/deploy/genosha/shared/pids /home/deploy/genosha/releases/20130603234127/tmp/pids"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 283ms
triggering after callbacks for `deploy:update_code'
* 2013-06-03 19:41:31 executing `deploy:assets:precompile'
triggering before callbacks for `deploy:assets:precompile'
* 2013-06-03 19:41:31 executing `deploy:assets:update_asset_mtimes'
* executing "[ -e /home/deploy/genosha/shared/assets/manifest.yml ] && cat /home/deploy/genosha/shared/assets/manifest.yml || echo"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 385ms
** Updating mtimes for ~2632 assets...
servers: ["54.235.104.228"]
** sftp upload #<StringIO:0x007fae82eb7c00> -> /home/deploy/genosha/TOUCH_ASSETS
[54.235.104.228] /home/deploy/genosha/TOUCH_ASSETS
[54.235.104.228] done
* sftp upload complete
* executing "cat /home/deploy/genosha/TOUCH_ASSETS | while read asset; do touch -cm -- \"$asset\"; done && rm -f -- /home/deploy/genosha/TOUCH_ASSETS"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 9121ms
* executing "ls -x /home/deploy/genosha/releases"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 246ms
* executing "cd -- /home/deploy/genosha/releases/20130603234127 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile && cp -- /home/deploy/genosha/shared/assets/manifest.yml /home/deploy/genosha/releases/20130603234127/assets_manifest.yml"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 110860ms
* 2013-06-03 19:43:34 executing `deploy:create_symlink'
* executing "rm -f /home/deploy/genosha/current && ln -s /home/deploy/genosha/releases/20130603234127 /home/deploy/genosha/current"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 248ms
** transaction: commit
* 2013-06-03 19:43:34 executing `deploy:restart'
triggering after callbacks for `deploy:restart'
* 2013-06-03 19:43:34 executing `unicorn:restart'
* executing "kill -s USR2 `cat /tmp/unicorn.genosha.pid`"
servers: ["54.235.104.228"]
[54.235.104.228] executing command
command finished in 271ms
~/src/genosha$:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment