Skip to content

Instantly share code, notes, and snippets.

@cjmarkham
Created February 1, 2013 16:17
Show Gist options
  • Select an option

  • Save cjmarkham/4692284 to your computer and use it in GitHub Desktop.

Select an option

Save cjmarkham/4692284 to your computer and use it in GitHub Desktop.
Deploy
cjmarkham@cjmarkham-MS-7728:~/git/fog/snake-charmer$ ssh deploy cap alpha deploy
* executing `alpha'
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@bitbucket.org:fog/snake-charmer.git develop"
* executing "if [ -d /var/www/vhosts/alpha.freeonlinegames.com/shared/cached-copy ]; then cd /var/www/vhosts/alpha.freeonlinegames.com/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard a842700e27ef8b0e733f6b9b70a9316c9f93220c && git submodule -q init && git submodule -q sync && export GIT_RECURSIVE=$([ ! \"`git --version`\" \\< \"git version 1.6.5\" ] && echo --recursive) && git submodule -q update --init $GIT_RECURSIVE && git clean -q -d -x -f; else git clone -q git@bitbucket.org:fog/snake-charmer.git /var/www/vhosts/alpha.freeonlinegames.com/shared/cached-copy && cd /var/www/vhosts/alpha.freeonlinegames.com/shared/cached-copy && git checkout -q -b deploy a842700e27ef8b0e733f6b9b70a9316c9f93220c && git submodule -q init && git submodule -q sync && export GIT_RECURSIVE=$([ ! \"`git --version`\" \\< \"git version 1.6.5\" ] && echo --recursive) && git submodule -q update --init $GIT_RECURSIVE; fi"
servers: ["10.32.190.148"]
[10.32.190.148] executing command
command finished in 2953ms
copying the cached version to /var/www/vhosts/alpha.freeonlinegames.com/releases/20130201161457
* executing "cp -RPp /var/www/vhosts/alpha.freeonlinegames.com/shared/cached-copy /var/www/vhosts/alpha.freeonlinegames.com/releases/20130201161457 && (echo a842700e27ef8b0e733f6b9b70a9316c9f93220c > /var/www/vhosts/alpha.freeonlinegames.com/releases/20130201161457/REVISION)"
servers: ["10.32.190.148"]
[10.32.190.148] executing command
command finished in 143ms
* executing `deploy:finalize_update'
* executing "ln -s /var/www/vhosts/alpha.freeonlinegames.com/htdocs/games/ /var/www/vhosts/alpha.freeonlinegames.com/releases/20130201161457/games"
servers: ["10.32.190.148"]
[10.32.190.148] executing command
command finished in 34ms
* executing "ln -s /var/www/vhosts/alpha.freeonlinegames.com/htdocs/dynamic/ /var/www/vhosts/alpha.freeonlinegames.com/releases/20130201161457/dynamic"
servers: ["10.32.190.148"]
[10.32.190.148] executing command
command finished in 19ms
* executing "ln -s /var/www/vhosts/alpha.freeonlinegames.com/htdocs/translations/ /var/www/vhosts/alpha.freeonlinegames.com/releases/20130201161457/translations"
servers: ["10.32.190.148"]
[10.32.190.148] executing command
command finished in 19ms
* executing "php /var/www/vhosts/alpha.freeonlinegames.com/releases/20130201161457/.deploy/success alpha"
servers: ["10.32.190.148"]
[10.32.190.148] executing command
** [out :: 10.32.190.148]
** [out :: 10.32.190.148] Deploying to alpha.freeonlinegames.com
** [out :: 10.32.190.148] --------------------------------------
** [out :: 10.32.190.148]
** [out :: 10.32.190.148] Compile Static Files
** [out :: 10.32.190.148] --------------------
** [out :: 10.32.190.148] - CSS: 155.18 kb
** [out :: 10.32.190.148] - JS: 102.17 kb
** [out :: 10.32.190.148] - done
** [out :: 10.32.190.148]
** [out :: 10.32.190.148] Flush Couchbase
** [out :: 10.32.190.148] ---------------
** [out :: 10.32.190.148] - done
** [out :: 10.32.190.148]
** [out :: 10.32.190.148]
command finished in 96ms
* executing "cd /var/www/vhosts/alpha.freeonlinegames.com/releases/20130201161457/lib; git checkout develop; git pull origin develop;"
servers: ["10.32.190.148"]
[10.32.190.148] executing command
** [out :: 10.32.190.148] Previous HEAD position was 8908577... added method to purge file from cache
** [out :: 10.32.190.148] Switched to branch 'develop'
** [out :: 10.32.190.148] remote: Counting objects: 32, done.
** [out :: 10.32.190.148] remote: Compressing objects: 5% (1/20)
** [out :: 10.32.190.148] remote: Compressing objects: 10% (2/20)
** [out :: 10.32.190.148] remote: Compressing objects: 15% (3/20)
remote: Compressing objects: 25% (5/20)
remote: Compressing objects: 35% (7/20)
** [out :: 10.32.190.148] remote: Compressing objects: 40% (8/20)
remote: Compressing objects: 50% (10/20)
remote: Compressing objects: 100% (20/20), done.
** [out :: 10.32.190.148] remote: Total 21 (delta 13), reused 0 (delta 0)
Unpacking objects: 23% (5/21) ing objects: 4% (1/21)
Unpacking objects: 47% (10/21) ing objects: 28% (6/21)
Unpacking objects: 66% (14/21) ng objects: 52% (11/21)
Unpacking objects: 80% (17/21) ng objects: 71% (15/21)
** [out :: 10.32.190.148] Unpacking objects: 85% (18/21)
Unpacking objects: 100% (21/21), done.bjects: 90% (19/21)
** [out :: 10.32.190.148] From bitbucket.org:fog/snake-charmer-framework
** [out :: 10.32.190.148] * branch develop -> FETCH_HEAD
** [out :: 10.32.190.148] Updating dafdd2c..c4048a3
** [out :: 10.32.190.148] Fast-forward
** [out :: 10.32.190.148] bootstrap.php | 2 +-
** [out :: 10.32.190.148] cache.php | 6 +++---
** [out :: 10.32.190.148] router.php | 2 +-
** [out :: 10.32.190.148] 3 files changed, 5 insertions(+), 5 deletions(-)
command finished in 2362ms
* executing `deploy:symlink'
* executing "rm -f /var/www/vhosts/alpha.freeonlinegames.com/current && ln -s /var/www/vhosts/alpha.freeonlinegames.com/releases/20130201161457 /var/www/vhosts/alpha.freeonlinegames.com/current"
servers: ["10.32.190.148"]
[10.32.190.148] executing command
command finished in 20ms
** transaction: commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment