Skip to content

Instantly share code, notes, and snippets.

@jloosfelt
Last active December 26, 2015 06:18
Show Gist options
  • Save jloosfelt/7106348 to your computer and use it in GitHub Desktop.
Save jloosfelt/7106348 to your computer and use it in GitHub Desktop.
** Invoke production (first_time)
** Execute production
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke unicorn:start (first_time)
** Execute unicorn:start
INFO [81fe1c6a] Running if [ -e "/home/myapp/production/current/config/unicorn.rb" ]; then UNICORN_CONFIG_PATH=/home/myapp/production/current/config/unicorn.rb; else if [ -e "/home/myapp/production/current/config/unicorn/production.rb" ]; then UNICORN_CONFIG_PATH=/home/myapp/production/current/config/unicorn/production.rb; else echo "Config file for "production" environment was not found at either "/home/myapp/production/current/config/unicorn.rb" or "/home/myapp/production/current/config/unicorn/production.rb""; exit 1; fi; fi; if [ -e "/home/myapp/production/shared/pids/unicorn.pid" ]; then if kill -0 `cat /home/myapp/production/shared/pids/unicorn.pid` > /dev/null 2>&1; then echo "Unicorn is already running!"; exit 0; fi; rm /home/myapp/production/shared/pids/unicorn.pid; fi; echo "Starting Unicorn..."; cd /home/myapp/production/current/ && RAILS_ENV=production BUNDLE_GEMFILE=/home/myapp/production/current/Gemfile bundle exec unicorn -c $UNICORN_CONFIG_PATH -E deployment -D ; on one.qualimetrie.com
DEBUG [81fe1c6a] Command: if [ -e "/home/myapp/production/current/config/unicorn.rb" ]; then UNICORN_CONFIG_PATH=/home/myapp/production/current/config/unicorn.rb; else if [ -e "/home/myapp/production/current/config/unicorn/production.rb" ]; then UNICORN_CONFIG_PATH=/home/myapp/production/current/config/unicorn/production.rb; else echo "Config file for "production" environment was not found at either "/home/myapp/production/current/config/unicorn.rb" or "/home/myapp/production/current/config/unicorn/production.rb""; exit 1; fi; fi; if [ -e "/home/myapp/production/shared/pids/unicorn.pid" ]; then if kill -0 `cat /home/myapp/production/shared/pids/unicorn.pid` > /dev/null 2>&1; then echo "Unicorn is already running!"; exit 0; fi; rm /home/myapp/production/shared/pids/unicorn.pid; fi; echo "Starting Unicorn..."; cd /home/myapp/production/current/ && RAILS_ENV=production BUNDLE_GEMFILE=/home/myapp/production/current/Gemfile bundle exec unicorn -c $UNICORN_CONFIG_PATH -E deployment -D ;
DEBUG [81fe1c6a] Starting Unicorn...
DEBUG [81fe1c6a] bash: bundle: command not found
cap aborted!
if [ -e "/home/myapp/production/current/config/unicorn.rb" ]; then UNICORN_CONFIG_PATH=/home/myapp/production/current/config/unicorn.rb; else if [ -e "/home/myapp/production/current/config/unicorn/production.rb" ]; then UNICORN_CONFIG_PATH=/home/myapp/production/current/config/unicorn/production.rb; else echo "Config file for "production" environment was not found at either "/home/myapp/production/current/config/unicorn.rb" or "/home/myapp/production/current/config/unicorn/production.rb""; exit 1; fi; fi; if [ -e "/home/myapp/production/shared/pids/unicorn.pid" ]; then if kill -0 `cat /home/myapp/production/shared/pids/unicorn.pid` > /dev/null 2>&1; then echo "Unicorn is already running!"; exit 0; fi; rm /home/myapp/production/shared/pids/unicorn.pid; fi; echo "Starting Unicorn..."; cd /home/myapp/production/current/ && RAILS_ENV=production BUNDLE_GEMFILE=/home/myapp/production/current/Gemfile bundle exec unicorn -c $UNICORN_CONFIG_PATH -E deployment -D ; stdout: Nothing written
if [ -e "/home/myapp/production/current/config/unicorn.rb" ]; then UNICORN_CONFIG_PATH=/home/myapp/production/current/config/unicorn.rb; else if [ -e "/home/myapp/production/current/config/unicorn/production.rb" ]; then UNICORN_CONFIG_PATH=/home/myapp/production/current/config/unicorn/production.rb; else echo "Config file for "production" environment was not found at either "/home/myapp/production/current/config/unicorn.rb" or "/home/myapp/production/current/config/unicorn/production.rb""; exit 1; fi; fi; if [ -e "/home/myapp/production/shared/pids/unicorn.pid" ]; then if kill -0 `cat /home/myapp/production/shared/pids/unicorn.pid` > /dev/null 2>&1; then echo "Unicorn is already running!"; exit 0; fi; rm /home/myapp/production/shared/pids/unicorn.pid; fi; echo "Starting Unicorn..."; cd /home/myapp/production/current/ && RAILS_ENV=production BUNDLE_GEMFILE=/home/myapp/production/current/Gemfile bundle exec unicorn -c $UNICORN_CONFIG_PATH -E deployment -D ; stderr: Nothing written
/usr/local/Cellar/rbenv/0.4.0/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-1.1.0/lib/sshkit/command.rb:94:in `exit_status='
/usr/local/Cellar/rbenv/0.4.0/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:125:in `block (4 levels) in _execute'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:551:in `call'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:551:in `do_request'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:561:in `channel_request'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:465:in `dispatch_incoming_packets'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:221:in `preprocess'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:205:in `process'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `block in loop'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:269:in `wait'
/usr/local/Cellar/rbenv/0.4.0/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:147:in `block (2 levels) in _execute'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:514:in `call'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:514:in `do_open_confirmation'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:545:in `channel_open_confirmation'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:465:in `dispatch_incoming_packets'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:221:in `preprocess'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:205:in `process'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `block in loop'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/usr/local/Cellar/rbenv/0.4.0/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:149:in `block in _execute'
/usr/local/Cellar/rbenv/0.4.0/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:106:in `tap'
/usr/local/Cellar/rbenv/0.4.0/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:106:in `_execute'
/usr/local/Cellar/rbenv/0.4.0/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:54:in `execute'
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/capistrano-unicorn-ef20bc27dc8f/lib/capistrano/tasks/unicorn.cap:92:in `block (3 levels) in <top (required)>'
/usr/local/Cellar/rbenv/0.4.0/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:42:in `instance_exec'
/usr/local/Cellar/rbenv/0.4.0/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:42:in `run'
/usr/local/Cellar/rbenv/0.4.0/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/sshkit-1.1.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
Tasks: TOP => unicorn:start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment