Created
August 5, 2013 17:15
-
-
Save benjamintanweihao/6157650 to your computer and use it in GitHub Desktop.
Ou
This file contains hidden or 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
| command finished in 60385ms | |
| * executing "ls -1 /home/deployer/apps/qs/shared/assets/manifest* | wc -l" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| command finished in 941ms | |
| * executing "ls /home/deployer/apps/qs/shared/assets/manifest*" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| command finished in 1413ms | |
| * executing "ls -x /home/deployer/apps/qs/releases" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| command finished in 901ms | |
| * executing "cp -- /home/deployer/apps/qs/shared/assets/manifest.yml /home/deployer/apps/qs/releases/20130805165153/assets_manifest.yml" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| command finished in 926ms | |
| * 2013-08-06 00:53:25 executing `deploy:create_symlink' | |
| * executing "rm -f /home/deployer/apps/qs/current && ln -s /home/deployer/apps/qs/releases/20130805165153 /home/deployer/apps/qs/current" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| command finished in 1501ms | |
| ** transaction: commit | |
| * 2013-08-06 00:53:27 executing `deploy:restart' | |
| triggering before callbacks for `deploy:restart' | |
| * 2013-08-06 00:53:27 executing `sidekiq:restart' | |
| * 2013-08-06 00:53:27 executing `sidekiq:stop' | |
| * executing "if [ -d /home/deployer/apps/qs/current ] && [ -f /home/deployer/apps/qs/current/tmp/pids/sidekiq.pid ] && kill -0 `cat /home/deployer/apps/qs/current/tmp/pids/sidekiq.pid`> /dev/null 2>&1; then cd /home/deployer/apps/qs/current && bundle exec sidekiqctl stop /home/deployer/apps/qs/current/tmp/pids/sidekiq.pid 10 ; else echo 'Sidekiq is not running'; fi" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| ** [out :: xx.xx.xx.xx] Sidekiq shut down gracefully. | |
| command finished in 4567ms | |
| * 2013-08-06 00:53:31 executing `sidekiq:start' | |
| * executing "cd /home/deployer/apps/qs/current ; nohup bundle exec sidekiq -e production -C /home/deployer/apps/qs/current/config/sidekiq.yml -i 0 -P /home/deployer/apps/qs/current/tmp/pids/sidekiq.pid >> /home/deployer/apps/qs/current/log/sidekiq.log 2>&1 &" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| command finished in 918ms | |
| * executing "/etc/init.d/unicorn_qs restart" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| ** [out :: xx.xx.xx.xx] reloaded OK | |
| ** [out :: xx.xx.xx.xx] | |
| command finished in 1527ms | |
| triggering after callbacks for `deploy:restart' | |
| * 2013-08-06 00:53:34 executing `unicorn:restart' | |
| triggering before callbacks for `unicorn:restart' | |
| * executing "if [ -e /home/deployer/apps/qs/shared/pids/unicorn.pid ] && kill -0 `cat /home/deployer/apps/qs/shared/pids/unicorn.pid` > /dev/null 2>&1; then\\\n echo \"Duplicating Unicorn...\";\\\n kill -s USR2 `cat /home/deployer/apps/qs/shared/pids/unicorn.pid`;\\\n else\\\n if [ -e /home/deployer/apps/qs/current/config/unicorn.rb ]; then\\\n UNICORN_CONFIG_PATH=/home/deployer/apps/qs/current/config/unicorn.rb;\\\n else\\\n if [ -e /home/deployer/apps/qs/current/config/unicorn/production.rb ]; then\\\n UNICORN_CONFIG_PATH=/home/deployer/apps/qs/current/config/unicorn/production.rb;\\\n else\\\n echo \"Config file for \"production\" environment was not found at either \"/home/deployer/apps/qs/current/config/unicorn.rb\" or \"/home/deployer/apps/qs/current/config/unicorn/production.rb\"\";\\\n exit 1;\\\n fi;\\\n fi;\\\n\\\n if [ -e /home/deployer/apps/qs/shared/pids/unicorn.pid ]; then\\\n if kill -0 `cat /home/deployer/apps/qs/shared/pids/unicorn.pid` > /dev/null 2>&1; then\\\n echo \"Unicorn is already running!\";\\\n exit 0;\\\n fi;\\\n\\\n rm /home/deployer/apps/qs/shared/pids/unicorn.pid;\\\n fi;\\\n\\\n echo \"Starting Unicorn...\";\\\n cd /home/deployer/apps/qs/current && BUNDLE_GEMFILE=/home/deployer/apps/qs/current/Gemfile bundle exec unicorn -c $UNICORN_CONFIG_PATH -E production -D;\\\n\\\n fi;\\\n\\\n\\\n sleep 2; # in order to wait for the (old) pidfile to show up\\\n\\\n if [ -e /home/deployer/apps/qs/shared/pids/unicorn.pid.oldbin ] && kill -0 `cat /home/deployer/apps/qs/shared/pids/unicorn.pid.oldbin` > /dev/null 2>&1; then\\\n kill -s QUIT `cat /home/deployer/apps/qs/shared/pids/unicorn.pid.oldbin`;\\\n fi;" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| ** [out :: xx.xx.xx.xx] Duplicating Unicorn... | |
| ** [out :: xx.xx.xx.xx] | |
| command finished in 3650ms | |
| triggering after callbacks for `deploy' | |
| * 2013-08-06 00:53:37 executing `deploy:migrate' | |
| * executing "cd /home/deployer/apps/qs/releases/20130805165153 && bundle exec rake RAILS_ENV=production db:migrate" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| ** [out :: xx.xx.xx.xx] Connecting to database specified by database.yml | |
| * 2013-08-06 00:54:50 executing `deploy:cleanup' | |
| * executing "ls -1dt /home/deployer/apps/qs/releases/* | tail -n +6 | xargs rm -rf" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| command finished in 1503ms | |
| triggering after callbacks for `deploy:cleanup' | |
| * 2013-08-06 00:54:51 executing `deploy:assets:clean_expired' | |
| * executing "for manifest in /home/deployer/apps/qs/releases/*/assets_manifest.*; do cat -- \"$manifest\" 2> /dev/null && printf ':::' || true; done" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| command finished in 5638ms | |
| ** Fetched 5 manifests from /home/deployer/apps/qs/releases/*/assets_manifest.* | |
| ** Writing required assets to /home/deployer/apps/qs/REQUIRED_ASSETS... | |
| servers: ["xx.xx.xx.xx"] | |
| ** scp upload #<StringIO:0x007fa0fb343c78> -> /home/deployer/apps/qs/REQUIRED_ASSETS | |
| [xx.xx.xx.xx] /home/deployer/apps/qs/REQUIRED_ASSETS | |
| * scp upload complete | |
| ** Removing assets that haven't been deployed for 10080 minutes... | |
| * executing "cd -- /home/deployer/apps/qs/ && LC_COLLATE=C sort REQUIRED_ASSETS -o REQUIRED_ASSETS && cd -- /home/deployer/apps/qs/shared/assets/ && for f in $( find * -mmin +10080 -type f | LC_COLLATE=C sort | LC_COLLATE=C comm -23 -- - /home/deployer/apps/qs/REQUIRED_ASSETS ); do echo \"Removing unneeded asset: $f\"; rm -f -- \"$f\"; done; rm -f -- /home/deployer/apps/qs/REQUIRED_ASSETS" | |
| servers: ["xx.xx.xx.xx"] | |
| [xx.xx.xx.xx] executing command | |
| command finished in 960ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment