Skip to content

Instantly share code, notes, and snippets.

@workmaster2n
Last active August 29, 2015 13:56
Show Gist options
  • Save workmaster2n/9059570 to your computer and use it in GitHub Desktop.
Save workmaster2n/9059570 to your computer and use it in GitHub Desktop.
task :rvm_app_alias, roles: :app do
run "rvm alias create #{application} #{rvm_ruby_string_evaluated}"
#run "rvm wrapper #{application} --no-links --all"
end
after "deploy:finalize_update", "deploy:rvm_app_alias"
Tylers-MacBook-Pro:arcsite_mysql tyler$ git push origin deploy_test
Counting objects: 14, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 377 bytes | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
To [email protected]:PeritusSolutions/arcsite_mysql.git
96631b4..a81a7f6 deploy_test -> deploy_test
Tylers-MacBook-Pro:arcsite_mysql tyler$ cap deploy_test deploy:cold
triggering load callbacks
* 2014-02-17 15:52:51 executing `deploy_test'
triggering start callbacks for `deploy:cold'
* 2014-02-17 15:52:51 executing `multistage:ensure'
* 2014-02-17 15:52:51 executing `deploy:cold'
* 2014-02-17 15:52:51 executing `deploy:update'
** transaction: start
* 2014-02-17 15:52:51 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote [email protected]:PeritusSolutions/arcsite_mysql.git deploy_test"
command finished in 897ms
* executing "if [ -d /home/deployer/apps/arcsite/shared/cached-copy ]; then cd /home/deployer/apps/arcsite/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard a81a7f61aab2645611e974f45431fecf9dcdb8b6 && git clean -q -d -x -f; else git clone -q -b deploy_test [email protected]:PeritusSolutions/arcsite_mysql.git /home/deployer/apps/arcsite/shared/cached-copy && cd /home/deployer/apps/arcsite/shared/cached-copy && git checkout -q -b deploy a81a7f61aab2645611e974f45431fecf9dcdb8b6; fi"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
command finished in 3683ms
copying the cached version to /home/deployer/apps/arcsite/releases/20140217215257
* executing "cp -RPp /home/deployer/apps/arcsite/shared/cached-copy /home/deployer/apps/arcsite/releases/20140217215257 && (echo a81a7f61aab2645611e974f45431fecf9dcdb8b6 > /home/deployer/apps/arcsite/releases/20140217215257/REVISION)"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
command finished in 1189ms
* 2014-02-17 15:52:58 executing `deploy:finalize_update'
triggering before callbacks for `deploy:finalize_update'
* 2014-02-17 15:52:58 executing `deploy:assets:symlink'
* executing "rm -rf /home/deployer/apps/arcsite/releases/20140217215257/public/assets && mkdir -p /home/deployer/apps/arcsite/releases/20140217215257/public && mkdir -p /home/deployer/apps/arcsite/shared/assets && ln -s /home/deployer/apps/arcsite/shared/assets /home/deployer/apps/arcsite/releases/20140217215257/public/assets"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
command finished in 1212ms
* 2014-02-17 15:52:59 executing `bundle:install'
* executing "cd /home/deployer/apps/arcsite/releases/20140217215257 && bundle install --gemfile /home/deployer/apps/arcsite/releases/20140217215257/Gemfile --system --without development test"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
** [out :: 162.243.14.70] Using rake (10.0.4)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using i18n (0.6.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using multi_json (1.7.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using activesupport (3.2.13)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using builder (3.0.4)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using activemodel (3.2.13)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using erubis (2.7.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using journey (1.0.4)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using rack (1.4.5)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using rack-cache (1.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using rack-test (0.6.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using hike (1.2.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using tilt (1.3.7)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using sprockets (2.2.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using actionpack (3.2.13)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using mime-types (1.23)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using polyglot (0.3.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using treetop (1.4.12)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using mail (2.5.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using actionmailer (3.2.13)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using arel (3.0.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using tzinfo (0.3.37)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using activerecord (3.2.13)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using activerecord-import (0.3.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using rgeo (0.3.20)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using rgeo-activerecord (0.5.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using activerecord-postgis-adapter (0.6.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using activeresource (3.2.13)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using addressable (2.3.4)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using bcrypt-ruby (3.0.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using sass (3.2.12)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using bootstrap-sass (3.1.0.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using cancan (1.6.9)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using highline (1.6.18)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using net-ssh (2.6.7)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using net-scp (1.1.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using net-sftp (2.1.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using net-ssh-gateway (1.2.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using capistrano (2.15.4)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using climate_control (0.0.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using cocaine (0.5.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using coffee-script-source (1.6.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using execjs (1.4.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using coffee-script (2.2.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using rack-ssl (1.3.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using json (1.7.7)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using rdoc (3.12.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using thor (0.18.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using railties (3.2.13)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using coffee-rails (3.2.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using cookiejar (0.3.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using daemons (1.1.9)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using dalli (2.6.4)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using fastercsv (1.5.5)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using dbf (2.0.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using orm_adapter (0.4.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using warden (1.2.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using devise (2.2.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using eco-source (1.1.0.rc.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using eco (1.0.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using eventmachine (1.0.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using em-socksify (0.3.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using http_parser.rb (0.6.0.beta.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using em-http-request (1.1.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using websocket-driver (0.2.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using faye-websocket (0.6.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using yajl-ruby (1.1.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using faye (0.8.9)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using forgery (0.5.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using haml (4.0.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using haml-rails (0.4)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using jqplot-rails (0.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using jquery-rails (2.2.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using jquery-ui-rails (4.0.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using kgio (2.8.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using openlayers-rails (0.0.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using paperclip (3.4.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using pg (0.15.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using polyamorous (0.5.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using private_pub (1.0.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using bundler (1.3.5)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using rails (3.2.13)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using raindrops (0.11.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using rgeo-shapefile (0.2.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using rolify (3.2.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using rvm-capistrano (1.3.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using sass-rails (3.2.6)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using simple_form (2.1.0)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using spork (0.9.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using squeel (1.0.18)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using thin (1.5.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using transaction_isolation (1.0.3)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using uglifier (2.0.1)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using unicorn (4.6.2)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using will_paginate (3.0.4)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Using will_paginate-bootstrap (0.2.5)
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Your bundle is complete!
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Gems in the groups development and test were not installed.
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Use `bundle show [gemname]` to see where a bundled gem is installed.
** [out :: 162.243.14.70]
command finished in 2017ms
* executing "chmod -R -- g+w /home/deployer/apps/arcsite/releases/20140217215257 && rm -rf -- /home/deployer/apps/arcsite/releases/20140217215257/public/system && mkdir -p -- /home/deployer/apps/arcsite/releases/20140217215257/public/ && ln -s -- /home/deployer/apps/arcsite/shared/system /home/deployer/apps/arcsite/releases/20140217215257/public/system && rm -rf -- /home/deployer/apps/arcsite/releases/20140217215257/log && ln -s -- /home/deployer/apps/arcsite/shared/log /home/deployer/apps/arcsite/releases/20140217215257/log && rm -rf -- /home/deployer/apps/arcsite/releases/20140217215257/tmp/pids && mkdir -p -- /home/deployer/apps/arcsite/releases/20140217215257/tmp/ && ln -s -- /home/deployer/apps/arcsite/shared/pids /home/deployer/apps/arcsite/releases/20140217215257/tmp/pids"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
command finished in 894ms
triggering after callbacks for `deploy:finalize_update'
* 2014-02-17 15:53:02 executing `deploy:rvm_app_alias'
* executing "rvm alias create arcsite ruby-2.0.0-p353@arcsite_mysql"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
** [out :: 162.243.14.70] Creating alias arcsite for ruby-2.0.0-p353@arcsite_mysql
** [out :: 162.243.14.70] |
** [out :: 162.243.14.70] /
** [out :: 162.243.14.70] -
** [out :: 162.243.14.70] \
** [out :: 162.243.14.70] |
** [out :: 162.243.14.70] /
** [out :: 162.243.14.70] .
** [out :: 162.243.14.70]
command finished in 1621ms
* 2014-02-17 15:53:03 executing `deploy:symlink_config'
* executing "ln -nfs /home/deployer/apps/arcsite/shared/config/database.yml /home/deployer/apps/arcsite/releases/20140217215257/config/database.yml"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
command finished in 707ms
triggering after callbacks for `deploy:update_code'
* 2014-02-17 15:53:04 executing `deploy:assets:precompile'
triggering before callbacks for `deploy:assets:precompile'
* 2014-02-17 15:53:04 executing `deploy:assets:update_asset_mtimes'
* executing "[ -e /home/deployer/apps/arcsite/shared/assets/manifest* ] && cat /home/deployer/apps/arcsite/shared/assets/manifest* || echo"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
command finished in 783ms
** Updating mtimes for ~944 assets...
servers: ["162.243.14.70"]
** scp upload #<StringIO:0x007fca62e2e508> -> /home/deployer/apps/arcsite/TOUCH_ASSETS
[162.243.14.70] /home/deployer/apps/arcsite/TOUCH_ASSETS
* scp upload complete
* executing "cat /home/deployer/apps/arcsite/TOUCH_ASSETS | while read asset; do touch -c -- \"$asset\"; done && rm -f -- /home/deployer/apps/arcsite/TOUCH_ASSETS"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
command finished in 2409ms
* executing "cat /home/deployer/apps/arcsite/current/REVISION"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
command finished in 841ms
* executing "cd /home/deployer/apps/arcsite/releases/20140217215257 && git log 96631b45ddbf8de94a41313130a6732522a77495.. vendor/assets/ app/assets/ | wc -l"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
command finished in 688ms
** Skipping asset pre-compilation because there were no asset changes
* 2014-02-17 15:53:10 executing `deploy:create_symlink'
* executing "rm -f /home/deployer/apps/arcsite/current && ln -s /home/deployer/apps/arcsite/releases/20140217215257 /home/deployer/apps/arcsite/current"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
command finished in 586ms
** transaction: commit
* 2014-02-17 15:53:10 executing `deploy:migrate'
* executing "cd /home/deployer/apps/arcsite/releases/20140217215257 && bundle exec rake RAILS_ENV=development db:migrate"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
command finished in 11734ms
* 2014-02-17 15:53:22 executing `deploy:start'
* executing "/etc/init.d/unicorn start"
servers: ["162.243.14.70"]
[162.243.14.70] executing command
** [out :: 162.243.14.70] /home/deployer/apps/arcsite/current:
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Starting -
** [out :: 162.243.14.70] /etc/init.d/unicorn: line 68: /home/deployer/.rvm/wrappers/arcsite/unicorn: No such file or directory
** [out :: 162.243.14.70]
** [out :: 162.243.14.70] Failed!
** [out :: 162.243.14.70]
command finished in 961ms
failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'ruby-2.0.0-p353@arcsite_mysql' -c '/etc/init.d/unicorn start'" on 162.243.14.70
require "bundler/capistrano"
require "rvm/capistrano"
#multistage
set :stages, %w(production staging deploy_test)
require 'capistrano/ext/multistage'
set :application, "arcsite"
set :repository, "[email protected]:PeritusSolutions/arcsite_mysql.git"
set :branch, "master"
set :user, "deployer"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
#rvm
set :rvm_ruby_string, :local
set :rvm_autolibs_flag, :enable
set :rvm_install_with_sudo, true
set :bundle_flags, '--system'
set :bundle_dir, ''
before 'deploy:setup', 'rvm:install_rvm' # install RVM
before 'deploy:setup', 'rvm:install_ruby' # install Ruby and create gemset
default_run_options[:pty] = true
ssh_options[:forward_agent] = 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`
#server "192.168.0.30", :web, :app, :db, primary: true
#role :web, "your web-server here" # Your HTTP server, Apache/etc
#role :app, "your app-server here" # This may be the same as your `Web` server
#role :db, "your primary db-server here", :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
namespace :deploy do
task :rvm_app_alias, roles: :app do
run "rvm alias create #{application} #{rvm_ruby_string_evaluated}"
#run "rvm wrapper #{application} --no-links --all"
end
after "deploy:finalize_update", "deploy:rvm_app_alias"
%w[start stop restart].each do |command|
desc "#{command} unicorn server"
task command, roles: :app, except: {no_release: true} do
run "/etc/init.d/unicorn #{command}"
end
end
task :setup_config, roles: :app do
sudo "mkdir -p /etc/unicorn"
sudo "ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}"
sudo "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn"
sudo "ln -nfs #{current_path}/config/#{application}.conf" "/etc/unicorn/#{application}.conf"
run "mkdir -p #{shared_path}/config"
put File.read("config/database.example.yml"), "#{shared_path}/config/database.yml"
put File.read("config/#{application}.example.conf"), "#{shared_path}/config/#{application}.conf"
puts "Now edit the config files in #{shared_path}."
end
after "deploy:setup", "deploy:setup_config"
task :symlink_config, roles: :app do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
end
after "deploy:finalize_update", "deploy:symlink_config"
#precompile assets only when needed
#namespace :assets do
# task :precompile, :roles => :web, :except => {:no_release => true} do
# from = source.next_revision(current_revision)
# if capture("cd #{latest_release} && #{source.local.log(from)} vendor/assets/ app/assets/ | wc -l").to_i > 0
# run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile}
# else
# logger.info "Skipping asset pre-compilation because there were no asset changes"
# end
# end
#end
end
Tylers-MacBook-Pro:arcsite_mysql tyler$ cap deploy_test deploy:setup
triggering load callbacks
* 2014-02-17 18:57:15 executing `deploy_test'
triggering start callbacks for `deploy:setup'
* 2014-02-17 18:57:15 executing `multistage:ensure'
* 2014-02-17 18:57:15 executing `deploy:setup'
triggering before callbacks for `deploy:setup'
* 2014-02-17 18:57:15 executing `rvm:install_rvm'
* executing "__LAST_STATUS=0; export CURL_HOME=\"${TMPDIR:-${HOME}}/.rvm-curl-config.$$\"; mkdir ${CURL_HOME}/; { [[ -r ${HOME}/.curlrc ]] && cat ${HOME}/.curlrc; echo \"silent\"; echo \"show-error\"; } > $CURL_HOME/.curlrc; curl -L get.rvm.io | bash -s stable --path $HOME/.rvm/ || __LAST_STATUS=$?; rm -rf $CURL_HOME; exit ${__LAST_STATUS}"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198] Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing RVM to /home/deployer/.rvm//
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Adding rvm PATH line to /home/deployer/.profile /home/deployer/.bashrc /home/deployer/.zshrc.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Adding rvm loading line to /home/deployer/.bash_profile /home/deployer/.zlogin.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installation of RVM in /home/deployer/.rvm// is almost complete:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] * To start using RVM you need to run `source /home/deployer/.rvm//scripts/rvm`
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] in all your open shell windows, in rare cases you need to reopen all shell windows.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] # deployer,
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] #
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] # Thank you for using RVM!
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] # We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] #
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] # ~Wayne, Michal & team.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] In case of problems: http://rvm.io/help and https://twitter.com/rvm_io
** [out :: 107.170.29.198]
command finished in 2748ms
* 2014-02-17 18:57:18 executing `rvm:install_ruby'
* executing "__LAST_STATUS=0; export CURL_HOME=\"${TMPDIR:-${HOME}}/.rvm-curl-config.$$\"; mkdir ${CURL_HOME}/; { [[ -r ${HOME}/.curlrc ]] && cat ${HOME}/.curlrc; echo \"silent\"; echo \"show-error\"; } > $CURL_HOME/.curlrc; sudo -p 'sudo password: ' $HOME/.rvm/bin/rvm --autolibs=enable requirements ruby-2.0.0-p353; $HOME/.rvm/bin/rvm --autolibs=1 install ruby-2.0.0-p353 -j $(cat /proc/cpuinfo 2>/dev/null | (grep vendor_id || echo 'vendor_id : Other';) | wc -l) ; $HOME/.rvm/bin/rvm ruby-2.0.0-p353 do rvm gemset create arcsite_mysql || __LAST_STATUS=$?; rm -rf $CURL_HOME; exit ${__LAST_STATUS}"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
Password:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Checking requirements for ubuntu.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing requirements for ubuntu.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Updating system
** [out :: 107.170.29.198] .........
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing required packages: gawk, g++, make, libreadline6-dev, libyaml-dev, libsqlite3-dev, sqlite3, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, pkg-config, libffi-dev
** [out :: 107.170.29.198] .............
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Requirements installation successful.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Searching for binary rubies, this might take some time.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Found remote file https://rvm.io/binaries/ubuntu/12.04/x86_64/ruby-2.0.0-p353.tar.bz2
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Checking requirements for ubuntu.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Requirements installation successful.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #configure
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #download
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #validate archive
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #extract
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #validate binary
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #setup
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #making binaries executable
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #downloading rubygems-2.2.2
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] No checksum for downloaded archive, recording checksum in user configuration.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #extracting rubygems-2.2.2
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #removing old rubygems
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #installing rubygems-2.2.2
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #gemset created /home/deployer/.rvm/gems/ruby-2.0.0-p353@global
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #importing gemset /home/deployer/.rvm/gemsets/global.gems
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #generating global wrappers
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #gemset created /home/deployer/.rvm/gems/ruby-2.0.0-p353
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #importing gemsetfile /home/deployer/.rvm/gemsets/default.gems evaluated to empty gem list
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #generating default wrappers
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #gemset created /home/deployer/.rvm/gems/ruby-2.0.0-p353@arcsite_mysql
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #generating arcsite_mysql wrappers
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
command finished in 74767ms
* executing "mkdir -p /home/deployer/apps/arcsite /home/deployer/apps/arcsite/releases /home/deployer/apps/arcsite/shared /home/deployer/apps/arcsite/shared/system /home/deployer/apps/arcsite/shared/log /home/deployer/apps/arcsite/shared/pids"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 528ms
* executing "chmod g+w /home/deployer/apps/arcsite /home/deployer/apps/arcsite/releases /home/deployer/apps/arcsite/shared /home/deployer/apps/arcsite/shared/system /home/deployer/apps/arcsite/shared/log /home/deployer/apps/arcsite/shared/pids"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 613ms
triggering after callbacks for `deploy:setup'
* 2014-02-17 18:58:34 executing `deploy:setup_config'
* executing "mkdir -p /etc/unicorn"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198] mkdir:
** [out :: 107.170.29.198] cannot create directory `/etc/unicorn'
** [out :: 107.170.29.198] : Permission denied
** [out :: 107.170.29.198]
command finished in 636ms
failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'ruby-2.0.0-p353@arcsite_mysql' -c 'mkdir -p /etc/unicorn'" on 107.170.29.198
Tylers-MacBook-Pro:arcsite_mysql tyler$ cap deploy_test deploy:cold
triggering load callbacks
* 2014-02-17 19:03:05 executing `deploy_test'
triggering start callbacks for `deploy:cold'
* 2014-02-17 19:03:05 executing `multistage:ensure'
* 2014-02-17 19:03:05 executing `deploy:cold'
* 2014-02-17 19:03:05 executing `deploy:update'
** transaction: start
* 2014-02-17 19:03:05 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote [email protected]:PeritusSolutions/arcsite_mysql.git deploy_test"
command finished in 1006ms
* executing "if [ -d /home/deployer/apps/arcsite/shared/cached-copy ]; then cd /home/deployer/apps/arcsite/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard f50399a9e10c9876ffc9f76271a0158955f7bd8c && git clean -q -d -x -f; else git clone -q -b deploy_test [email protected]:PeritusSolutions/arcsite_mysql.git /home/deployer/apps/arcsite/shared/cached-copy && cd /home/deployer/apps/arcsite/shared/cached-copy && git checkout -q -b deploy f50399a9e10c9876ffc9f76271a0158955f7bd8c; fi"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [107.170.29.198 :: out] Warning: Permanently added the RSA host key for IP address '192.30.252.130' to the list of known hosts.
** [107.170.29.198 :: out]
command finished in 4020ms
copying the cached version to /home/deployer/apps/arcsite/releases/20140218010310
* executing "cp -RPp /home/deployer/apps/arcsite/shared/cached-copy /home/deployer/apps/arcsite/releases/20140218010310 && (echo f50399a9e10c9876ffc9f76271a0158955f7bd8c > /home/deployer/apps/arcsite/releases/20140218010310/REVISION)"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 818ms
* 2014-02-17 19:03:11 executing `deploy:finalize_update'
triggering before callbacks for `deploy:finalize_update'
* 2014-02-17 19:03:11 executing `deploy:assets:symlink'
* executing "rm -rf /home/deployer/apps/arcsite/releases/20140218010310/public/assets && mkdir -p /home/deployer/apps/arcsite/releases/20140218010310/public && mkdir -p /home/deployer/apps/arcsite/shared/assets && ln -s /home/deployer/apps/arcsite/shared/assets /home/deployer/apps/arcsite/releases/20140218010310/public/assets"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 617ms
* 2014-02-17 19:03:12 executing `bundle:install'
* executing "cd /home/deployer/apps/arcsite/releases/20140218010310 && bundle install --gemfile /home/deployer/apps/arcsite/releases/20140218010310/Gemfile --system --without development test"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198] Fetching gem metadata from https://rubygems.org/
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Fetching gem metadata from https://rubygems.org/
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rake (10.0.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing i18n (0.6.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing multi_json (1.7.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing activesupport (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing builder (3.0.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing activemodel (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing erubis (2.7.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing journey (1.0.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rack (1.4.5)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rack-cache (1.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rack-test (0.6.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing hike (1.2.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing tilt (1.3.7)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing sprockets (2.2.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing actionpack (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing mime-types (1.23)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing polyglot (0.3.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing treetop (1.4.12)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing mail (2.5.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing actionmailer (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing arel (3.0.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing tzinfo (0.3.37)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing activerecord (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing activerecord-import (0.3.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rgeo (0.3.20)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rgeo-activerecord (0.5.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing activerecord-postgis-adapter (0.6.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing activeresource (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing addressable (2.3.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing bcrypt-ruby (3.0.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing sass (3.2.12)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing bootstrap-sass (3.1.0.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing cancan (1.6.9)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing highline (1.6.18)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing net-ssh (2.6.7)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing net-scp (1.1.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing net-sftp (2.1.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing net-ssh-gateway (1.2.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing capistrano (2.15.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing climate_control (0.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing cocaine (0.5.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing coffee-script-source (1.6.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing execjs (1.4.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing coffee-script (2.2.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rack-ssl (1.3.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using json (1.7.7)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rdoc (3.12.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing thor (0.18.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing railties (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing coffee-rails (3.2.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing cookiejar (0.3.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing daemons (1.1.9)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing dalli (2.6.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing fastercsv (1.5.5)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing dbf (2.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing orm_adapter (0.4.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing warden (1.2.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing devise (2.2.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing eco-source (1.1.0.rc.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing eco (1.0.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing eventmachine (1.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing em-socksify (0.3.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing http_parser.rb (0.6.0.beta.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing em-http-request (1.1.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing websocket-driver (0.2.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing faye-websocket (0.6.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing yajl-ruby (1.1.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing faye (0.8.9)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing forgery (0.5.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing haml (4.0.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing haml-rails (0.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing jqplot-rails (0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing jquery-rails (2.2.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing jquery-ui-rails (4.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing kgio (2.8.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing openlayers-rails (0.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing paperclip (3.4.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing pg (0.15.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing polyamorous (0.5.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing private_pub (1.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using bundler (1.3.5)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rails (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing raindrops (0.11.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rgeo-shapefile (0.2.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rolify (3.2.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing rvm-capistrano (1.3.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing sass-rails (3.2.6)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing simple_form (2.1.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing spork (0.9.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing squeel (1.0.18)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing thin (1.5.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing transaction_isolation (1.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing uglifier (2.0.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing unicorn (4.6.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing will_paginate (3.0.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Installing will_paginate-bootstrap (0.2.5)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Your bundle is complete!
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Gems in the groups development and test were not installed.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Use `bundle show [gemname]` to see where a bundled gem is installed.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Post-install message from rdoc:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Depending on your version of ruby, you may need to install ruby rdoc/ri data:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] <= 1.8.6 : unsupported
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] = 1.8.7 : gem install rdoc-data; rdoc-data --install
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] = 1.9.1 : gem install rdoc-data; rdoc-data --install
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] >= 1.9.2 : nothing to do! Yay!
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Post-install message from haml:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] your application:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] * Support for Ruby 1.8.6 dropped
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] * Support for Rails 2 dropped
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] * Sass filter now always outputs <style> tags
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] * Data attributes are now hyphenated, not underscored
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] * html2haml utility moved to the html2haml gem
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] * Textile and Maruku filters moved to the haml-contrib gem
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] For more info see:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] http://rubydoc.info/github/haml/haml/file/CHANGELOG.md
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Post-install message from paperclip:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ##################################################
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] # NOTE FOR UPGRADING FROM PRE-3.0 VERSION #
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ##################################################
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Paperclip 3.0 introduces a non-backward compatible change in your attachment
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] path. This will help to prevent attachment name clashes when you have
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] multiple attachments with the same name. If you didn't alter your
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] attachment's path and are using Paperclip's default, you'll have to add
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] `:path` and `:url` to your `has_attached_file` definition. For example:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] has_attached_file :avatar,
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] :path => ":rails_root/public/system/:attachment/:id/:style/:filename",
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] :url => "/system/:attachment/:id/:style/:filename"
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
command finished in 146705ms
* executing "chmod -R -- g+w /home/deployer/apps/arcsite/releases/20140218010310 && rm -rf -- /home/deployer/apps/arcsite/releases/20140218010310/public/system && mkdir -p -- /home/deployer/apps/arcsite/releases/20140218010310/public/ && ln -s -- /home/deployer/apps/arcsite/shared/system /home/deployer/apps/arcsite/releases/20140218010310/public/system && rm -rf -- /home/deployer/apps/arcsite/releases/20140218010310/log && ln -s -- /home/deployer/apps/arcsite/shared/log /home/deployer/apps/arcsite/releases/20140218010310/log && rm -rf -- /home/deployer/apps/arcsite/releases/20140218010310/tmp/pids && mkdir -p -- /home/deployer/apps/arcsite/releases/20140218010310/tmp/ && ln -s -- /home/deployer/apps/arcsite/shared/pids /home/deployer/apps/arcsite/releases/20140218010310/tmp/pids"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 448ms
triggering after callbacks for `deploy:finalize_update'
* 2014-02-17 19:05:39 executing `deploy:rvm_app_alias'
* executing "rvm alias create arcsite ruby-2.0.0-p353@arcsite_mysql"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198] Creating alias arcsite for ruby-2.0.0-p353@arcsite_mysql
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
command finished in 918ms
* 2014-02-17 19:05:40 executing `deploy:symlink_config'
* executing "ln -nfs /home/deployer/apps/arcsite/shared/config/database.yml /home/deployer/apps/arcsite/releases/20140218010310/config/database.yml"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 493ms
triggering after callbacks for `deploy:update_code'
* 2014-02-17 19:05:40 executing `deploy:assets:precompile'
triggering before callbacks for `deploy:assets:precompile'
* 2014-02-17 19:05:40 executing `deploy:assets:update_asset_mtimes'
* executing "[ -e /home/deployer/apps/arcsite/shared/assets/manifest* ] && cat /home/deployer/apps/arcsite/shared/assets/manifest* || echo"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 465ms
* executing "cat /home/deployer/apps/arcsite/current/REVISION"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 482ms
*** [deploy:update_code] rolling back
* executing "rm -rf /home/deployer/apps/arcsite/releases/20140218010310; true"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 805ms
failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'ruby-2.0.0-p353@arcsite_mysql' -c 'cat /home/deployer/apps/arcsite/current/REVISION'" on 107.170.29.198
Tylers-MacBook-Pro:arcsite_mysql tyler$ cap deploy_test deploy:cold
triggering load callbacks
* 2014-02-17 19:10:39 executing `deploy_test'
triggering start callbacks for `deploy:cold'
* 2014-02-17 19:10:39 executing `multistage:ensure'
* 2014-02-17 19:10:39 executing `deploy:cold'
* 2014-02-17 19:10:39 executing `deploy:update'
** transaction: start
* 2014-02-17 19:10:39 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote [email protected]:PeritusSolutions/arcsite_mysql.git deploy_test"
command finished in 1004ms
* executing "if [ -d /home/deployer/apps/arcsite/shared/cached-copy ]; then cd /home/deployer/apps/arcsite/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard abe1039a1d058e1522702e6e9b84dc54f449520c && git clean -q -d -x -f; else git clone -q -b deploy_test [email protected]:PeritusSolutions/arcsite_mysql.git /home/deployer/apps/arcsite/shared/cached-copy && cd /home/deployer/apps/arcsite/shared/cached-copy && git checkout -q -b deploy abe1039a1d058e1522702e6e9b84dc54f449520c; fi"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [107.170.29.198 :: out] Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts.
** [107.170.29.198 :: out]
command finished in 3254ms
copying the cached version to /home/deployer/apps/arcsite/releases/20140218011044
* executing "cp -RPp /home/deployer/apps/arcsite/shared/cached-copy /home/deployer/apps/arcsite/releases/20140218011044 && (echo abe1039a1d058e1522702e6e9b84dc54f449520c > /home/deployer/apps/arcsite/releases/20140218011044/REVISION)"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 1320ms
* 2014-02-17 19:10:45 executing `deploy:finalize_update'
triggering before callbacks for `deploy:finalize_update'
* 2014-02-17 19:10:45 executing `deploy:assets:symlink'
* executing "rm -rf /home/deployer/apps/arcsite/releases/20140218011044/public/assets && mkdir -p /home/deployer/apps/arcsite/releases/20140218011044/public && mkdir -p /home/deployer/apps/arcsite/shared/assets && ln -s /home/deployer/apps/arcsite/shared/assets /home/deployer/apps/arcsite/releases/20140218011044/public/assets"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 489ms
* 2014-02-17 19:10:46 executing `bundle:install'
* executing "cd /home/deployer/apps/arcsite/releases/20140218011044 && bundle install --gemfile /home/deployer/apps/arcsite/releases/20140218011044/Gemfile --system --without development test"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198] Using rake (10.0.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using i18n (0.6.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using multi_json (1.7.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using activesupport (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using builder (3.0.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using activemodel (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using erubis (2.7.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using journey (1.0.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using rack (1.4.5)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using rack-cache (1.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using rack-test (0.6.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using hike (1.2.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using tilt (1.3.7)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using sprockets (2.2.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using actionpack (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using mime-types (1.23)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using polyglot (0.3.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using treetop (1.4.12)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using mail (2.5.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using actionmailer (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using arel (3.0.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using tzinfo (0.3.37)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using activerecord (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using activerecord-import (0.3.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using rgeo (0.3.20)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using rgeo-activerecord (0.5.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using activerecord-postgis-adapter (0.6.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using activeresource (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using addressable (2.3.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using bcrypt-ruby (3.0.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using sass (3.2.12)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using bootstrap-sass (3.1.0.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using cancan (1.6.9)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using highline (1.6.18)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using net-ssh (2.6.7)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using net-scp (1.1.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using net-sftp (2.1.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using net-ssh-gateway (1.2.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using capistrano (2.15.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using climate_control (0.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using cocaine (0.5.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using coffee-script-source (1.6.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using execjs (1.4.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using coffee-script (2.2.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using rack-ssl (1.3.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using json (1.7.7)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using rdoc (3.12.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using thor (0.18.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using railties (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using coffee-rails (3.2.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using cookiejar (0.3.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using daemons (1.1.9)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using dalli (2.6.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using fastercsv (1.5.5)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using dbf (2.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using orm_adapter (0.4.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using warden (1.2.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using devise (2.2.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using eco-source (1.1.0.rc.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using eco (1.0.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using eventmachine (1.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using em-socksify (0.3.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using http_parser.rb (0.6.0.beta.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using em-http-request (1.1.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using websocket-driver (0.2.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using faye-websocket (0.6.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using yajl-ruby (1.1.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using faye (0.8.9)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using forgery (0.5.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using haml (4.0.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using haml-rails (0.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using jqplot-rails (0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using jquery-rails (2.2.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using jquery-ui-rails (4.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using kgio (2.8.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using openlayers-rails (0.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using paperclip (3.4.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using pg (0.15.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using polyamorous (0.5.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using private_pub (1.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using bundler (1.3.5)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using rails (3.2.13)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using raindrops (0.11.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using rgeo-shapefile (0.2.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using rolify (3.2.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using rvm-capistrano (1.3.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using sass-rails (3.2.6)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using simple_form (2.1.0)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using spork (0.9.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using squeel (1.0.18)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using thin (1.5.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using transaction_isolation (1.0.3)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using uglifier (2.0.1)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using unicorn (4.6.2)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using will_paginate (3.0.4)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Using will_paginate-bootstrap (0.2.5)
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Your bundle is complete!
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Gems in the groups development and test were not installed.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Use `bundle show [gemname]` to see where a bundled gem is installed.
** [out :: 107.170.29.198]
command finished in 1845ms
* executing "chmod -R -- g+w /home/deployer/apps/arcsite/releases/20140218011044 && rm -rf -- /home/deployer/apps/arcsite/releases/20140218011044/public/system && mkdir -p -- /home/deployer/apps/arcsite/releases/20140218011044/public/ && ln -s -- /home/deployer/apps/arcsite/shared/system /home/deployer/apps/arcsite/releases/20140218011044/public/system && rm -rf -- /home/deployer/apps/arcsite/releases/20140218011044/log && ln -s -- /home/deployer/apps/arcsite/shared/log /home/deployer/apps/arcsite/releases/20140218011044/log && rm -rf -- /home/deployer/apps/arcsite/releases/20140218011044/tmp/pids && mkdir -p -- /home/deployer/apps/arcsite/releases/20140218011044/tmp/ && ln -s -- /home/deployer/apps/arcsite/shared/pids /home/deployer/apps/arcsite/releases/20140218011044/tmp/pids"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 531ms
triggering after callbacks for `deploy:finalize_update'
* 2014-02-17 19:10:48 executing `deploy:rvm_app_alias'
* executing "rvm alias create arcsite ruby-2.0.0-p353@arcsite_mysql"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198] Creating alias arcsite for ruby-2.0.0-p353@arcsite_mysql
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] -
** [out :: 107.170.29.198] \
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] /
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
command finished in 1127ms
* 2014-02-17 19:10:49 executing `deploy:symlink_config'
* executing "ln -nfs /home/deployer/apps/arcsite/shared/config/database.yml /home/deployer/apps/arcsite/releases/20140218011044/config/database.yml"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 511ms
triggering after callbacks for `deploy:update_code'
* 2014-02-17 19:10:50 executing `deploy:assets:precompile'
triggering before callbacks for `deploy:assets:precompile'
* 2014-02-17 19:10:50 executing `deploy:assets:update_asset_mtimes'
* executing "[ -e /home/deployer/apps/arcsite/shared/assets/manifest* ] && cat /home/deployer/apps/arcsite/shared/assets/manifest* || echo"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 742ms
** Updating mtimes for ~944 assets...
servers: ["107.170.29.198"]
** scp upload #<StringIO:0x007fe899c16b30> -> /home/deployer/apps/arcsite/TOUCH_ASSETS
[107.170.29.198] /home/deployer/apps/arcsite/TOUCH_ASSETS
* scp upload complete
* executing "cat /home/deployer/apps/arcsite/TOUCH_ASSETS | while read asset; do touch -c -- \"$asset\"; done && rm -f -- /home/deployer/apps/arcsite/TOUCH_ASSETS"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 1643ms
* executing "cd -- /home/deployer/apps/arcsite/releases/20140218011044 && bundle exec rake RAILS_ENV=staging RAILS_GROUPS=assets assets:precompile"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 107115ms
* executing "ls -1 /home/deployer/apps/arcsite/shared/assets/manifest* | wc -l"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 614ms
* executing "ls /home/deployer/apps/arcsite/shared/assets/manifest*"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 503ms
* executing "ls -x /home/deployer/apps/arcsite/releases"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 477ms
* executing "cp -- /home/deployer/apps/arcsite/shared/assets/manifest.yml /home/deployer/apps/arcsite/releases/20140218011044/assets_manifest.yml"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 509ms
* 2014-02-17 19:12:42 executing `deploy:create_symlink'
* executing "rm -f /home/deployer/apps/arcsite/current && ln -s /home/deployer/apps/arcsite/releases/20140218011044 /home/deployer/apps/arcsite/current"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 553ms
** transaction: commit
* 2014-02-17 19:12:43 executing `deploy:migrate'
* executing "cd /home/deployer/apps/arcsite/releases/20140218011044 && bundle exec rake RAILS_ENV=staging db:migrate"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 9420ms
* 2014-02-17 19:12:52 executing `deploy:start'
* executing "/etc/init.d/unicorn start"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198] /etc/init.d/unicorn: line 203: /etc/unicorn/*.conf: No such file or directory
** [out :: 107.170.29.198]
command finished in 620ms
failed: "rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'ruby-2.0.0-p353@arcsite_mysql' -c '/etc/init.d/unicorn start'" on 107.170.29.198
Tylers-MacBook-Pro:arcsite_mysql tyler$ cap deploy_test deploy:setup
triggering load callbacks
* 2014-02-17 18:59:50 executing `deploy_test'
triggering start callbacks for `deploy:setup'
* 2014-02-17 18:59:50 executing `multistage:ensure'
* 2014-02-17 18:59:50 executing `deploy:setup'
triggering before callbacks for `deploy:setup'
* 2014-02-17 18:59:50 executing `rvm:install_rvm'
* executing "__LAST_STATUS=0; export CURL_HOME=\"${TMPDIR:-${HOME}}/.rvm-curl-config.$$\"; mkdir ${CURL_HOME}/; { [[ -r ${HOME}/.curlrc ]] && cat ${HOME}/.curlrc; echo \"silent\"; echo \"show-error\"; } > $CURL_HOME/.curlrc; curl -L get.rvm.io | bash -s stable --path $HOME/.rvm/ || __LAST_STATUS=$?; rm -rf $CURL_HOME; exit ${__LAST_STATUS}"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198] Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Upgrading the RVM installation in /home/deployer/.rvm//
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] RVM PATH line found in /home/deployer/.profile /home/deployer/.bashrc /home/deployer/.zshrc.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] RVM sourcing line found in /home/deployer/.bash_profile /home/deployer/.zlogin.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Upgrade of RVM in /home/deployer/.rvm// is complete.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] # deployer,
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] #
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] # Thank you for using RVM!
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] # We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] #
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] # ~Wayne, Michal & team.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] In case of problems: http://rvm.io/help and https://twitter.com/rvm_io
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Upgrade Notes:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] * No new notes to display.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
command finished in 2967ms
* 2014-02-17 18:59:54 executing `rvm:install_ruby'
* executing "__LAST_STATUS=0; export CURL_HOME=\"${TMPDIR:-${HOME}}/.rvm-curl-config.$$\"; mkdir ${CURL_HOME}/; { [[ -r ${HOME}/.curlrc ]] && cat ${HOME}/.curlrc; echo \"silent\"; echo \"show-error\"; } > $CURL_HOME/.curlrc; sudo -p 'sudo password: ' $HOME/.rvm/bin/rvm --autolibs=enable requirements ruby-2.0.0-p353; $HOME/.rvm/bin/rvm --autolibs=1 install ruby-2.0.0-p353 -j $(cat /proc/cpuinfo 2>/dev/null | (grep vendor_id || echo 'vendor_id : Other';) | wc -l) ; $HOME/.rvm/bin/rvm ruby-2.0.0-p353 do rvm gemset create arcsite_mysql || __LAST_STATUS=$?; rm -rf $CURL_HOME; exit ${__LAST_STATUS}"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
Password:
** [out :: 107.170.29.198]
*** [out :: 107.170.29.198] Sorry, try again.
** [out :: 107.170.29.198] Sorry, try again.
** [out :: 107.170.29.198]
Password:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Checking requirements for ubuntu.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Requirements installation successful.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] Already installed ruby-2.0.0-p353.
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] To reinstall use:
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] rvm reinstall ruby-2.0.0-p353
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #gemset created /home/deployer/.rvm/gems/ruby-2.0.0-p353@arcsite_mysql
** [out :: 107.170.29.198]
** [out :: 107.170.29.198] ruby-2.0.0-p353 - #generating arcsite_mysql wrappers
** [out :: 107.170.29.198] |
** [out :: 107.170.29.198] .
** [out :: 107.170.29.198]
command finished in 24993ms
* executing "mkdir -p /home/deployer/apps/arcsite /home/deployer/apps/arcsite/releases /home/deployer/apps/arcsite/shared /home/deployer/apps/arcsite/shared/system /home/deployer/apps/arcsite/shared/log /home/deployer/apps/arcsite/shared/pids"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 500ms
* executing "chmod g+w /home/deployer/apps/arcsite /home/deployer/apps/arcsite/releases /home/deployer/apps/arcsite/shared /home/deployer/apps/arcsite/shared/system /home/deployer/apps/arcsite/shared/log /home/deployer/apps/arcsite/shared/pids"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 528ms
triggering after callbacks for `deploy:setup'
* 2014-02-17 19:00:20 executing `deploy:setup_config'
* executing "sudo -p 'sudo password: ' mkdir -p /etc/unicorn"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198]
command finished in 719ms
* executing "sudo -p 'sudo password: ' ln -nfs /home/deployer/apps/arcsite/current/config/nginx.conf /etc/nginx/sites-enabled/arcsite"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198]
command finished in 625ms
* executing "sudo -p 'sudo password: ' ln -nfs /home/deployer/apps/arcsite/current/config/unicorn_init.sh /etc/init.d/unicorn"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198]
command finished in 612ms
* executing "sudo -p 'sudo password: ' ln -nfs /home/deployer/apps/arcsite/current/config/arcsite.conf/etc/unicorn/arcsite.conf"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
** [out :: 107.170.29.198]
command finished in 809ms
* executing "mkdir -p /home/deployer/apps/arcsite/shared/config"
servers: ["107.170.29.198"]
[107.170.29.198] executing command
command finished in 524ms
servers: ["107.170.29.198"]
** sftp upload #<StringIO:0x007ff2b4038fc8> -> /home/deployer/apps/arcsite/shared/config/database.yml
[107.170.29.198] /home/deployer/apps/arcsite/shared/config/database.yml
[107.170.29.198] done
* sftp upload complete
servers: ["107.170.29.198"]
** sftp upload #<StringIO:0x007ff2b4067328> -> /home/deployer/apps/arcsite/shared/config/arcsite.conf
[107.170.29.198] /home/deployer/apps/arcsite/shared/config/arcsite.conf
[107.170.29.198] done
* sftp upload complete
Now edit the config files in /home/deployer/apps/arcsite/shared.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment