Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
~/projects/shopify > cap staging deploy
* 2012-11-19 22:55:20 executing `staging'
* 2012-11-19 22:55:20 executing `set_staging_servers'
* 2012-11-19 22:55:20 executing `deploy'
triggering before callbacks for `deploy'
* 2012-11-19 22:55:20 executing `deploy:lock'
servers: ["app1.core.staging.ec2.shopify.com"]
** sftp upload #<StringIO:0x007fe0c24fe2f0> -> /u/apps/shopify/shared/system/lock.txt
[app1.core.staging.ec2.shopify.com] /u/apps/shopify/shared/system/lock.txt
[app1.core.staging.ec2.shopify.com] done
* sftp upload complete
* executing "chmod 644 /u/apps/shopify/shared/system/lock.txt"
servers: ["app1.core.staging.ec2.shopify.com"]
[app1.core.staging.ec2.shopify.com] executing command
command finished in 169ms
* 2012-11-19 22:55:22 executing `shopify:check_environment'
*** Deploying staging
* 2012-11-19 22:55:22 executing `deploy:update'
** transaction: start
* 2012-11-19 22:55:22 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@github.com:Shopify/shopify.git staging"
command finished in 3673ms
* executing "if [ -d /u/apps/shopify/shared/cached-copy ]; then cd /u/apps/shopify/shared/cached-copy && git fetch origin +staging:refs/remotes/origin/staging && git reset -q --mixed cbb1db2df776ef1eaef87fc2c9d6ae18dae82657 && git checkout -f . && git clean -q -d -x -f; else git clone git@github.com:Shopify/shopify.git /u/apps/shopify/shared/cached-copy && cd /u/apps/shopify/shared/cached-copy && git checkout -b deploy cbb1db2df776ef1eaef87fc2c9d6ae18dae82657; fi"
servers: ["app1.core.staging.ec2.shopify.com", "search1.core.staging.ec2.shopify.com"]
*** [deploy:update_code] rolling back
* executing "rm -rf /u/apps/shopify/releases/20121120035626; true"
servers: ["app1.core.staging.ec2.shopify.com", "search1.core.staging.ec2.shopify.com"]
** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: search1.core.staging.ec2.shopify.com (Net::SSH::Proxy::ConnectError: command timed out: ssh -l deploy -p 2222 204.93.213.10 nc search1.core.staging.ec2.shopify.com.shopify.com 22)
connection failed for: search1.core.staging.ec2.shopify.com (Net::SSH::Proxy::ConnectError: command timed out: ssh -l deploy -p 2222 204.93.213.10 nc search1.core.staging.ec2.shopify.com.shopify.com 22)
~/projects/shopify > cap staging deploy
* 2012-11-19 22:57:43 executing `staging'
* 2012-11-19 22:57:43 executing `set_staging_servers'
* 2012-11-19 22:57:43 executing `deploy'
triggering before callbacks for `deploy'
* 2012-11-19 22:57:43 executing `deploy:lock'
servers: ["app1.core.staging.ec2.shopify.com"]
** sftp upload #<StringIO:0x007f81654fed48> -> /u/apps/shopify/shared/system/lock.txt
[app1.core.staging.ec2.shopify.com] /u/apps/shopify/shared/system/lock.txt
[app1.core.staging.ec2.shopify.com] done
* sftp upload complete
* executing "chmod 644 /u/apps/shopify/shared/system/lock.txt"
servers: ["app1.core.staging.ec2.shopify.com"]
[app1.core.staging.ec2.shopify.com] executing command
command finished in 159ms
* 2012-11-19 22:57:45 executing `shopify:check_environment'
*** Deploying staging
* 2012-11-19 22:57:45 executing `deploy:update'
** transaction: start
* 2012-11-19 22:57:45 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@github.com:Shopify/shopify.git staging"
command finished in 3029ms
* executing "if [ -d /u/apps/shopify/shared/cached-copy ]; then cd /u/apps/shopify/shared/cached-copy && git fetch origin +staging:refs/remotes/origin/staging && git reset -q --mixed cbb1db2df776ef1eaef87fc2c9d6ae18dae82657 && git checkout -f . && git clean -q -d -x -f; else git clone git@github.com:Shopify/shopify.git /u/apps/shopify/shared/cached-copy && cd /u/apps/shopify/shared/cached-copy && git checkout -b deploy cbb1db2df776ef1eaef87fc2c9d6ae18dae82657; fi"
servers: ["app1.core.staging.ec2.shopify.com", "search1.core.staging.ec2.shopify.com"]
*** [deploy:update_code] rolling back
* executing "rm -rf /u/apps/shopify/releases/20121120035848; true"
servers: ["app1.core.staging.ec2.shopify.com", "search1.core.staging.ec2.shopify.com"]
** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: search1.core.staging.ec2.shopify.com (Net::SSH::Proxy::ConnectError: command timed out: ssh -l deploy -p 2222 204.93.213.10 nc search1.core.staging.ec2.shopify.com.shopify.com 22)
connection failed for: search1.core.staging.ec2.shopify.com (Net::SSH::Proxy::ConnectError: command timed out: ssh -l deploy -p 2222 204.93.213.10 nc search1.core.staging.ec2.shopify.com.shopify.com 22)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment