Created
May 22, 2013 17:33
-
-
Save alnutile/5629363 to your computer and use it in GitHub Desktop.
This is the output from cap and the deploy file
This file contains 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
* 2013-05-22 12:58:20 executing `deploy' | |
* 2013-05-22 12:58:20 executing `deploy:update' | |
** transaction: start | |
* 2013-05-22 12:58:20 executing `deploy:update_code' | |
updating the cached checkout on all servers | |
executing locally: "git ls-remote file://. master" | |
command finished in 12ms | |
* executing "if [ -d /var/www/alsstuff2/shared/cached-copy ]; then cd /var/www/alsstuff2/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 2e95e7826fa52b6eaf3d7dda085380d7e39a123d && git clean -q -d -x -f; else git clone -q -b master file:///home/deploy/git/alsBlogRails.git/ /var/www/alsstuff2/shared/cached-copy && cd /var/www/alsstuff2/shared/cached-copy && git checkout -q -b deploy 2e95e7826fa52b6eaf3d7dda085380d7e39a123d; fi" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 1217ms | |
copying the cached version to /var/www/alsstuff2/releases/20130522165822 | |
* executing "cp -RPp /var/www/alsstuff2/shared/cached-copy /var/www/alsstuff2/releases/20130522165822 && (echo 2e95e7826fa52b6eaf3d7dda085380d7e39a123d > /var/www/alsstuff2/releases/20130522165822/REVISION)" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 16726ms | |
* 2013-05-22 12:58:39 executing `deploy:finalize_update' | |
triggering before callbacks for `deploy:finalize_update' | |
* 2013-05-22 12:58:39 executing `bundle:install' | |
* executing "cd /var/www/alsstuff2/releases/20130522165822 && bundle install --gemfile /var/www/alsstuff2/releases/20130522165822/Gemfile --path /var/www/alsstuff2/shared/bundle --deployment --quiet --without development test" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 6475ms | |
* 2013-05-22 12:58:45 executing `deploy:assets:symlink' | |
* executing "rm -rf /var/www/alsstuff2/releases/20130522165822/public/assets && mkdir -p /var/www/alsstuff2/releases/20130522165822/public && mkdir -p /var/www/alsstuff2/shared/assets && ln -s /var/www/alsstuff2/shared/assets /var/www/alsstuff2/releases/20130522165822/public/assets" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 409ms | |
* executing "chmod -R -- g+w /var/www/alsstuff2/releases/20130522165822 && rm -rf -- /var/www/alsstuff2/releases/20130522165822/public/system && mkdir -p -- /var/www/alsstuff2/releases/20130522165822/public/ && ln -s -- /var/www/alsstuff2/shared/system /var/www/alsstuff2/releases/20130522165822/public/system && rm -rf -- /var/www/alsstuff2/releases/20130522165822/log && ln -s -- /var/www/alsstuff2/shared/log /var/www/alsstuff2/releases/20130522165822/log && rm -rf -- /var/www/alsstuff2/releases/20130522165822/tmp/pids && mkdir -p -- /var/www/alsstuff2/releases/20130522165822/tmp/ && ln -s -- /var/www/alsstuff2/shared/pids /var/www/alsstuff2/releases/20130522165822/tmp/pids" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 441ms | |
triggering after callbacks for `deploy:update_code' | |
* 2013-05-22 12:58:46 executing `deploy:assets:precompile' | |
triggering before callbacks for `deploy:assets:precompile' | |
* 2013-05-22 12:58:46 executing `deploy:assets:update_asset_mtimes' | |
* executing "[ -e /var/www/alsstuff2/shared/assets/manifest* ] && cat /var/www/alsstuff2/shared/assets/manifest* || echo" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 466ms | |
** Updating mtimes for ~488 assets... | |
servers: ["75.98.173.74"] | |
** scp upload #<StringIO:0x00000001707758> -> /var/www/alsstuff2/TOUCH_ASSETS | |
[75.98.173.74] /var/www/alsstuff2/TOUCH_ASSETS | |
* scp upload complete | |
* executing "cat /var/www/alsstuff2/TOUCH_ASSETS | while read asset; do touch -c -- \"$asset\"; done && rm -f -- /var/www/alsstuff2/TOUCH_ASSETS" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 932ms | |
* executing "cd -- /var/www/alsstuff2/releases/20130522165822 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 27034ms | |
* executing "ls -1 /var/www/alsstuff2/shared/assets/manifest* | wc -l" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 379ms | |
* executing "ls /var/www/alsstuff2/shared/assets/manifest*" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 367ms | |
* executing "ls -x /var/www/alsstuff2/releases" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 338ms | |
* executing "cp -- /var/www/alsstuff2/shared/assets/manifest.yml /var/www/alsstuff2/releases/20130522165822/assets_manifest.yml" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 331ms | |
* 2013-05-22 12:59:16 executing `deploy:create_symlink' | |
* executing "rm -f /var/www/alsstuff2/current && ln -s /var/www/alsstuff2/releases/20130522165822 /var/www/alsstuff2/current" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 322ms | |
** transaction: commit | |
* 2013-05-22 12:59:17 executing `deploy:restart' | |
alfrednutile@thinkpad:/var/www/alsbloginrails/alsstuff2$ cap deploy | |
* 2013-05-22 13:02:19 executing `deploy' | |
* 2013-05-22 13:02:19 executing `deploy:update' | |
** transaction: start | |
* 2013-05-22 13:02:19 executing `deploy:update_code' | |
updating the cached checkout on all servers | |
executing locally: "git ls-remote file://. master" | |
command finished in 9ms | |
* executing "if [ -d /var/www/alsstuff2/shared/cached-copy ]; then cd /var/www/alsstuff2/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 2e95e7826fa52b6eaf3d7dda085380d7e39a123d && git clean -q -d -x -f; else git clone -q -b master file:///home/deploy/git/alsBlogRails.git/ /var/www/alsstuff2/shared/cached-copy && cd /var/www/alsstuff2/shared/cached-copy && git checkout -q -b deploy 2e95e7826fa52b6eaf3d7dda085380d7e39a123d; fi" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 6452ms | |
copying the cached version to /var/www/alsstuff2/releases/20130522170226 | |
* executing "cp -RPp /var/www/alsstuff2/shared/cached-copy /var/www/alsstuff2/releases/20130522170226 && (echo 2e95e7826fa52b6eaf3d7dda085380d7e39a123d > /var/www/alsstuff2/releases/20130522170226/REVISION)" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 468ms | |
* 2013-05-22 13:02:27 executing `deploy:finalize_update' | |
triggering before callbacks for `deploy:finalize_update' | |
* 2013-05-22 13:02:27 executing `bundle:install' | |
* executing "cd /var/www/alsstuff2/releases/20130522170226 && bundle install --gemfile /var/www/alsstuff2/releases/20130522170226/Gemfile --path /var/www/alsstuff2/shared/bundle --deployment --quiet --without development test" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 6206ms | |
* 2013-05-22 13:02:33 executing `deploy:assets:symlink' | |
* executing "rm -rf /var/www/alsstuff2/releases/20130522170226/public/assets && mkdir -p /var/www/alsstuff2/releases/20130522170226/public && mkdir -p /var/www/alsstuff2/shared/assets && ln -s /var/www/alsstuff2/shared/assets /var/www/alsstuff2/releases/20130522170226/public/assets" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 1768ms | |
* executing "chmod -R -- g+w /var/www/alsstuff2/releases/20130522170226 && rm -rf -- /var/www/alsstuff2/releases/20130522170226/public/system && mkdir -p -- /var/www/alsstuff2/releases/20130522170226/public/ && ln -s -- /var/www/alsstuff2/shared/system /var/www/alsstuff2/releases/20130522170226/public/system && rm -rf -- /var/www/alsstuff2/releases/20130522170226/log && ln -s -- /var/www/alsstuff2/shared/log /var/www/alsstuff2/releases/20130522170226/log && rm -rf -- /var/www/alsstuff2/releases/20130522170226/tmp/pids && mkdir -p -- /var/www/alsstuff2/releases/20130522170226/tmp/ && ln -s -- /var/www/alsstuff2/shared/pids /var/www/alsstuff2/releases/20130522170226/tmp/pids" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 384ms | |
triggering after callbacks for `deploy:update_code' | |
* 2013-05-22 13:02:35 executing `deploy:assets:precompile' | |
triggering before callbacks for `deploy:assets:precompile' | |
* 2013-05-22 13:02:35 executing `deploy:assets:update_asset_mtimes' | |
* executing "[ -e /var/www/alsstuff2/shared/assets/manifest* ] && cat /var/www/alsstuff2/shared/assets/manifest* || echo" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 431ms | |
** Updating mtimes for ~488 assets... | |
servers: ["75.98.173.74"] | |
** scp upload #<StringIO:0x000000020971d8> -> /var/www/alsstuff2/TOUCH_ASSETS | |
[75.98.173.74] /var/www/alsstuff2/TOUCH_ASSETS | |
* scp upload complete | |
* executing "cat /var/www/alsstuff2/TOUCH_ASSETS | while read asset; do touch -c -- \"$asset\"; done && rm -f -- /var/www/alsstuff2/TOUCH_ASSETS" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 903ms | |
* executing "cd -- /var/www/alsstuff2/releases/20130522170226 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 18731ms | |
* executing "ls -1 /var/www/alsstuff2/shared/assets/manifest* | wc -l" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 390ms | |
* executing "ls /var/www/alsstuff2/shared/assets/manifest*" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 403ms | |
* executing "ls -x /var/www/alsstuff2/releases" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 758ms | |
* executing "cp -- /var/www/alsstuff2/shared/assets/manifest.yml /var/www/alsstuff2/releases/20130522170226/assets_manifest.yml" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 382ms | |
* 2013-05-22 13:02:58 executing `deploy:create_symlink' | |
* executing "rm -f /var/www/alsstuff2/current && ln -s /var/www/alsstuff2/releases/20130522170226 /var/www/alsstuff2/current" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 379ms | |
** transaction: commit | |
* 2013-05-22 13:02:58 executing `deploy:restart' | |
alfrednutile@thinkpad:/var/www/alsbloginrails/alsstuff2$ cap deploy | |
* 2013-05-22 13:14:01 executing `deploy' | |
* 2013-05-22 13:14:01 executing `deploy:update' | |
** transaction: start | |
* 2013-05-22 13:14:01 executing `deploy:update_code' | |
updating the cached checkout on all servers | |
executing locally: "git ls-remote file://. master" | |
command finished in 11ms | |
* executing "if [ -d /var/www/alsstuff2/shared/cached-copy ]; then cd /var/www/alsstuff2/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 2e95e7826fa52b6eaf3d7dda085380d7e39a123d && git clean -q -d -x -f; else git clone -q -b master file:///home/deploy/git/alsBlogRails.git/ /var/www/alsstuff2/shared/cached-copy && cd /var/www/alsstuff2/shared/cached-copy && git checkout -q -b deploy 2e95e7826fa52b6eaf3d7dda085380d7e39a123d; fi" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 547ms | |
copying the cached version to /var/www/alsstuff2/releases/20130522171402 | |
* executing "cp -RPp /var/www/alsstuff2/shared/cached-copy /var/www/alsstuff2/releases/20130522171402 && (echo 2e95e7826fa52b6eaf3d7dda085380d7e39a123d > /var/www/alsstuff2/releases/20130522171402/REVISION)" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 1930ms | |
* 2013-05-22 13:14:04 executing `deploy:finalize_update' | |
triggering before callbacks for `deploy:finalize_update' | |
* 2013-05-22 13:14:04 executing `bundle:install' | |
* executing "cd /var/www/alsstuff2/releases/20130522171402 && bundle install --gemfile /var/www/alsstuff2/releases/20130522171402/Gemfile --path /var/www/alsstuff2/shared/bundle --deployment --quiet --without development test" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 731ms | |
* 2013-05-22 13:14:05 executing `deploy:assets:symlink' | |
* executing "rm -rf /var/www/alsstuff2/releases/20130522171402/public/assets && mkdir -p /var/www/alsstuff2/releases/20130522171402/public && mkdir -p /var/www/alsstuff2/shared/assets && ln -s /var/www/alsstuff2/shared/assets /var/www/alsstuff2/releases/20130522171402/public/assets" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 332ms | |
* executing "chmod -R -- g+w /var/www/alsstuff2/releases/20130522171402 && rm -rf -- /var/www/alsstuff2/releases/20130522171402/public/system && mkdir -p -- /var/www/alsstuff2/releases/20130522171402/public/ && ln -s -- /var/www/alsstuff2/shared/system /var/www/alsstuff2/releases/20130522171402/public/system && rm -rf -- /var/www/alsstuff2/releases/20130522171402/log && ln -s -- /var/www/alsstuff2/shared/log /var/www/alsstuff2/releases/20130522171402/log && rm -rf -- /var/www/alsstuff2/releases/20130522171402/tmp/pids && mkdir -p -- /var/www/alsstuff2/releases/20130522171402/tmp/ && ln -s -- /var/www/alsstuff2/shared/pids /var/www/alsstuff2/releases/20130522171402/tmp/pids" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 335ms | |
triggering after callbacks for `deploy:update_code' | |
* 2013-05-22 13:14:05 executing `deploy:assets:precompile' | |
triggering before callbacks for `deploy:assets:precompile' | |
* 2013-05-22 13:14:05 executing `deploy:assets:update_asset_mtimes' | |
* executing "[ -e /var/www/alsstuff2/shared/assets/manifest* ] && cat /var/www/alsstuff2/shared/assets/manifest* || echo" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 387ms | |
** Updating mtimes for ~488 assets... | |
servers: ["75.98.173.74"] | |
** scp upload #<StringIO:0x000000012dcac0> -> /var/www/alsstuff2/TOUCH_ASSETS | |
[75.98.173.74] /var/www/alsstuff2/TOUCH_ASSETS | |
* scp upload complete | |
* executing "cat /var/www/alsstuff2/TOUCH_ASSETS | while read asset; do touch -c -- \"$asset\"; done && rm -f -- /var/www/alsstuff2/TOUCH_ASSETS" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 723ms | |
* executing "cd -- /var/www/alsstuff2/releases/20130522171402 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 17776ms | |
* executing "ls -1 /var/www/alsstuff2/shared/assets/manifest* | wc -l" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 363ms | |
* executing "ls /var/www/alsstuff2/shared/assets/manifest*" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 371ms | |
* executing "sudo -p 'sudo password: ' ls -x /var/www/alsstuff2/releases" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
Password: | |
command finished in 25595ms | |
* executing "cp -- /var/www/alsstuff2/shared/assets/manifest.yml /var/www/alsstuff2/releases/20130522171402/assets_manifest.yml" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 396ms | |
* 2013-05-22 13:14:51 executing `deploy:create_symlink' | |
* executing "sudo -p 'sudo password: ' rm -f /var/www/alsstuff2/current && sudo -p 'sudo password: ' ln -s /var/www/alsstuff2/releases/20130522171402 /var/www/alsstuff2/current" | |
servers: ["75.98.173.74"] | |
[75.98.173.74] executing command | |
command finished in 367ms | |
** transaction: commit | |
* 2013-05-22 13:14:52 executing `deploy:restart' |
This file contains 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
#$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the | |
require 'rvm/capistrano' # Add RVM integration | |
require 'bundler/capistrano' # Add Bundler integration | |
ssh_options[:forward_agent] = true | |
set :deploy_via, :remote_cache | |
#set :use_sudo, false | |
load 'deploy/assets' | |
set :application, "alsstuff2" | |
set :user, "deploy" | |
set :deploy_to, "/var/www/#{application}" | |
set :repository, "file:///home/deploy/git/alsBlogRails.git/" | |
set :local_repository, "file://." | |
#set :deploy_via, :copy | |
#set :local_repository, "/media/DriveTwov2/GitLocal/alsBlogRails.git" | |
set :scm, :git | |
set :branch, "master" | |
default_run_options[:pty] = true | |
# set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names | |
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` | |
role :web, "75.98.173.74" # Your HTTP server, Apache/etc | |
role :app, "75.98.173.74" # This may be the same as your `Web` server | |
role :db, "75.98.173.74", :primary => true # This is where Rails migrations will run | |
#role :db, "your slave db-server here" | |
# if you want to clean up old releases on each deploy uncomment this: | |
# after "deploy:restart", "deploy:cleanup" | |
# if you're still using the script/reaper helper you will need | |
# these http://github.com/rails/irs_process_scripts | |
# If you are using Passenger mod_rails uncomment this: | |
# namespace :deploy do | |
# task :start do ; end | |
# task :stop do ; end | |
# task :restart, :roles => :app, :except => { :no_release => true } do | |
# run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" | |
# end | |
# end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment