Created
June 27, 2018 12:21
-
-
Save tbrooke/d1cab731a78d718ae89d51887f2ca5b8 to your computer and use it in GitHub Desktop.
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
food-pantry-manager git:(azure-deployment) bundle exec cap deploy | |
triggering load callbacks | |
* 2018-06-27 07:55:13 executing `deploy' | |
triggering before callbacks for `deploy' | |
* 2018-06-27 07:55:13 executing `deploy:check_revision' | |
* 2018-06-27 07:55:13 executing `deploy:update' | |
** transaction: start | |
* 2018-06-27 07:55:13 executing `deploy:update_code' | |
updating the cached checkout on all servers | |
executing locally: "git ls-remote [email protected]:MainStMission/food-pantry-manager.git azure-deployment" | |
command finished in 973ms | |
* executing "if [ -d /var/www/pantry/shared/cached-copy ]; then cd /var/www/pantry/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard f4893472aebc074042cad0503c0fe5c1096159bf && git clean -q -d -x -f; else git clone -q -b azure-deployment [email protected]:MainStMission/food-pantry-manager.git /var/www/pantry/shared/cached-copy && cd /var/www/pantry/shared/cached-copy && git checkout -q -b deploy f4893472aebc074042cad0503c0fe5c1096159bf; fi" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 3027ms | |
copying the cached version to /var/www/pantry/releases/20180627115517 | |
* executing "cp -RPp /var/www/pantry/shared/cached-copy /var/www/pantry/releases/20180627115517 && (echo f4893472aebc074042cad0503c0fe5c1096159bf > /var/www/pantry/releases/20180627115517/REVISION)" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 1681ms | |
* 2018-06-27 07:55:19 executing `deploy:finalize_update' | |
triggering before callbacks for `deploy:finalize_update' | |
* 2018-06-27 07:55:19 executing `deploy:assets:symlink' | |
* executing "rm -rf /var/www/pantry/releases/20180627115517/public/assets && mkdir -p /var/www/pantry/releases/20180627115517/public && mkdir -p /var/www/pantry/shared/assets && ln -s /var/www/pantry/shared/assets /var/www/pantry/releases/20180627115517/public/assets" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 637ms | |
* 2018-06-27 07:55:20 executing `bundle:install' | |
* executing "cd /var/www/pantry/releases/20180627115517 && bundle install --gemfile /var/www/pantry/releases/20180627115517/Gemfile --path /var/www/pantry/shared/bundle --deployment --quiet --without development test" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
** [out :: 40.117.131.90] YAML safe loading is not available. Please upgrade psych to a version that supports safe loading (>= 2.0). | |
** [out :: 40.117.131.90] | |
command finished in 19699ms | |
* executing "chmod -R -- g+w /var/www/pantry/releases/20180627115517 && rm -rf -- /var/www/pantry/releases/20180627115517/public/system && mkdir -p -- /var/www/pantry/releases/20180627115517/public/ && ln -s -- /var/www/pantry/shared/system /var/www/pantry/releases/20180627115517/public/system && rm -rf -- /var/www/pantry/releases/20180627115517/log && ln -s -- /var/www/pantry/shared/log /var/www/pantry/releases/20180627115517/log && rm -rf -- /var/www/pantry/releases/20180627115517/tmp/pids && mkdir -p -- /var/www/pantry/releases/20180627115517/tmp/ && ln -s -- /var/www/pantry/shared/pids /var/www/pantry/releases/20180627115517/tmp/pids" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 768ms | |
triggering after callbacks for `deploy:finalize_update' | |
* 2018-06-27 07:55:40 executing `deploy:symlink_config' | |
* executing "ln -nfs /var/www/pantry/shared/config/database.yml /var/www/pantry/releases/20180627115517/config/database.yml" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 723ms | |
triggering after callbacks for `deploy:update_code' | |
* 2018-06-27 07:55:41 executing `deploy:assets:precompile' | |
triggering before callbacks for `deploy:assets:precompile' | |
* 2018-06-27 07:55:41 executing `deploy:assets:update_asset_mtimes' | |
* executing "[ -e /var/www/pantry/shared/assets/manifest* ] && cat /var/www/pantry/shared/assets/manifest* || echo" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 692ms | |
** Updating mtimes for ~776 assets... | |
servers: ["40.117.131.90"] | |
** scp upload #<StringIO:0x007f7f8a4e0e10> -> /var/www/pantry/TOUCH_ASSETS | |
[40.117.131.90] /var/www/pantry/TOUCH_ASSETS | |
* scp upload complete | |
* executing "cat /var/www/pantry/TOUCH_ASSETS | while read asset; do touch -c -- \"$asset\"; done && rm -f -- /var/www/pantry/TOUCH_ASSETS" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 2774ms | |
* executing "cd -- /var/www/pantry/releases/20180627115517 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 193141ms | |
* executing "ls -1 /var/www/pantry/shared/assets/manifest* | wc -l" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 656ms | |
* executing "ls /var/www/pantry/shared/assets/manifest*" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 1005ms | |
* executing "ls -x /var/www/pantry/releases" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 644ms | |
* executing "cp -- /var/www/pantry/shared/assets/manifest.yml /var/www/pantry/releases/20180627115517/assets_manifest.yml" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 658ms | |
* 2018-06-27 07:59:01 executing `deploy:create_symlink' | |
* executing "rm -f /var/www/pantry/current && ln -s /var/www/pantry/releases/20180627115517 /var/www/pantry/current" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 785ms | |
** transaction: commit | |
* 2018-06-27 07:59:02 executing `deploy:restart' | |
* executing "/etc/init.d/unicorn_pantry restart" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
** [out :: 40.117.131.90] reloaded OK | |
** [out :: 40.117.131.90] | |
command finished in 1056ms | |
triggering after callbacks for `deploy:restart' | |
* 2018-06-27 07:59:03 executing `unicorn:restart' | |
* executing "sudo -p 'sudo password: ' service unicorn_pantry restart" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 2562ms | |
triggering after callbacks for `deploy' | |
* 2018-06-27 07:59:05 executing `deploy:cleanup' | |
* executing "ls -1dt /var/www/pantry/releases/* | tail -n +6 | xargs rm -rf" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 3160ms | |
triggering after callbacks for `deploy:cleanup' | |
* 2018-06-27 07:59:08 executing `deploy:assets:clean_expired' | |
* executing "for manifest in /var/www/pantry/releases/*/assets_manifest.*; do cat -- \"$manifest\" 2> /dev/null && printf ':::' || true; done" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 1177ms | |
** Fetched 3 manifests from /var/www/pantry/releases/*/assets_manifest.* | |
** Writing required assets to /var/www/pantry/REQUIRED_ASSETS... | |
servers: ["40.117.131.90"] | |
** scp upload #<StringIO:0x007f7f8c985bd0> -> /var/www/pantry/REQUIRED_ASSETS | |
[40.117.131.90] /var/www/pantry/REQUIRED_ASSETS | |
* scp upload complete | |
** Removing assets that haven't been deployed for 10080 minutes... | |
* executing "cd -- /var/www/pantry/ && LC_COLLATE=C sort REQUIRED_ASSETS -o REQUIRED_ASSETS && cd -- /var/www/pantry/shared/assets/ && for f in $( find * -mmin +10080 -type f | LC_COLLATE=C sort | LC_COLLATE=C comm -23 -- - /var/www/pantry/REQUIRED_ASSETS ); do echo \"Removing unneeded asset: $f\"; rm -f -- \"$f\"; done; rm -f -- /var/www/pantry/REQUIRED_ASSETS" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 682ms | |
➜ food-pantry-manager git:(azure-deployment) ssh [email protected] | |
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.13.0-1016-azure x86_64) | |
* Documentation: https://help.ubuntu.com | |
* Management: https://landscape.canonical.com | |
* Support: https://ubuntu.com/advantage | |
Get cloud support with Ubuntu Advantage Cloud Guest: | |
http://www.ubuntu.com/business/services/cloud | |
26 packages can be updated. | |
0 updates are security updates. | |
*** System restart required *** | |
Last login: Wed Jun 27 11:59:18 2018 from 75.190.107.242 | |
msmuser@food-pantry-prod:~$ pg_dump --host pantry-production.postgres.database.azure.com --username pantry@pantry-production pantry_productionexi | |
Password: | |
pg_dump: [archiver (db)] connection to database "pantry_productionexi" failed: server closed the connection unexpectedly | |
This probably means the server terminated abnormally | |
before or while processing the request. | |
FATAL: SSL connection is required. Please specify SSL options and retry. | |
msmuser@food-pantry-prod:~$ exit | |
logout | |
Connection to 40.117.131.90 closed. | |
➜ food-pantry-manager git:(azure-deployment) bundle exec cap unicorn:stop | |
triggering load callbacks | |
* 2018-06-27 08:07:15 executing `unicorn:stop' | |
* executing "sudo -p 'sudo password: ' service unicorn_pantry stop" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 2027ms | |
➜ food-pantry-manager git:(azure-deployment) bundle exec cap unicorn:start | |
triggering load callbacks | |
* 2018-06-27 08:07:28 executing `unicorn:start' | |
* executing "sudo -p 'sudo password: ' service unicorn_pantry start" | |
servers: ["40.117.131.90"] | |
[40.117.131.90] executing command | |
command finished in 34945ms | |
➜ food-pantry-manager git:(azure-deployment) bundle exec rails s | |
=> Booting WEBrick | |
=> Rails 3.2.12 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
[2018-06-27 08:10:15] INFO WEBrick 1.3.1 | |
[2018-06-27 08:10:15] INFO ruby 1.9.3 (2013-05-15) [x86_64-darwin17.5.0] | |
[2018-06-27 08:10:15] INFO WEBrick::HTTPServer#start: pid=61873 port=3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment