Skip to content

Instantly share code, notes, and snippets.

@kylebakerio
Created May 27, 2016 20:09
Show Gist options
  • Save kylebakerio/be74404138c9ee7e16b1c01a87d1a918 to your computer and use it in GitHub Desktop.
Save kylebakerio/be74404138c9ee7e16b1c01a87d1a918 to your computer and use it in GitHub Desktop.
(iz)kajo@kajo-Precision-3510:~/Code/Zebra/iz2$ iz2stage
[staging-web1.zbra.io] Executing task 'deploy_staging'
[staging-web1.zbra.io] run: git config core.sharedRepository group
[staging-web1.zbra.io] run: sudo chmod ug+rwX -R /web/iz2
[staging-web1.zbra.io] run: sudo -u ubuntu git fetch origin develop:refs/remotes/origin/develop
[staging-web1.zbra.io] run: sudo -u ubuntu sh -c "git log HEAD..origin/develop --no-merges --pretty=format:'%H %s' >> new_changes.log"
[staging-web1.zbra.io] run: sudo -u ubuntu git checkout -- .
[staging-web1.zbra.io] run: sudo -u ubuntu git clean -fd
[staging-web1.zbra.io] run: sudo -u ubuntu git pull origin develop
[staging-web1.zbra.io] out: From github.com:insurancezebra/iz2
[staging-web1.zbra.io] out: * branch develop -> FETCH_HEAD
[staging-web1.zbra.io] out: Already up-to-date.
[staging-web1.zbra.io] out:
[staging-web1.zbra.io] run: sudo supervisorctl restart uwsgi
[staging-web1.zbra.io] out: uwsgi: stopped
[staging-web1.zbra.io] out: uwsgi: started
[staging-web1.zbra.io] out:
[staging-celery1.zbra.io] Executing task 'deploy_staging_celery'
[staging-celery1.zbra.io] Executing task 'deploy_staging_celery_env'
[staging-celery2.zbra.io] Executing task 'deploy_staging_celery_env'
[staging-celery3.zbra.io] Executing task 'deploy_staging_celery_env'
[staging-celery3.zbra.io] run: sudo supervisorctl stop celery
[staging-celery2.zbra.io] run: sudo supervisorctl stop celery
[staging-celery1.zbra.io] run: sudo supervisorctl stop celery
[staging-celery3.zbra.io] out: celery: stopped
[staging-celery3.zbra.io] out:
[staging-celery3.zbra.io] run: sudo pkill -f celery
[staging-celery1.zbra.io] out: celery: stopped
[staging-celery1.zbra.io] out:
[staging-celery1.zbra.io] run: sudo pkill -f celery
[staging-celery2.zbra.io] out: celery: stopped
[staging-celery2.zbra.io] out:
[staging-celery2.zbra.io] run: sudo pkill -f celery
[staging-celery3.zbra.io] run: git config core.sharedRepository group
[staging-celery1.zbra.io] run: git config core.sharedRepository group
[staging-celery2.zbra.io] run: git config core.sharedRepository group
[staging-celery3.zbra.io] run: sudo chmod ug+rwX -R /web/iz2
[staging-celery1.zbra.io] run: sudo chmod ug+rwX -R /web/iz2
[staging-celery2.zbra.io] run: sudo chmod ug+rwX -R /web/iz2
[staging-celery3.zbra.io] run: sudo -u ubuntu git fetch origin develop:refs/remotes/origin/develop
[staging-celery1.zbra.io] run: sudo -u ubuntu git checkout -- .
[staging-celery2.zbra.io] run: sudo -u ubuntu git checkout -- .
[staging-celery3.zbra.io] run: sudo -u ubuntu sh -c "git log HEAD..origin/develop --no-merges --pretty=format:'%H %s' >> new_changes.log"
[staging-celery3.zbra.io] run: sudo -u ubuntu git checkout -- .
[staging-celery1.zbra.io] run: sudo -u ubuntu git clean -fd
[staging-celery2.zbra.io] run: sudo -u ubuntu git clean -fd
[staging-celery1.zbra.io] run: sudo -u ubuntu git pull origin develop
[staging-celery3.zbra.io] run: sudo -u ubuntu git clean -fd
[staging-celery1.zbra.io] out: From github.com:insurancezebra/iz2
[staging-celery1.zbra.io] out: * branch develop -> FETCH_HEAD
[staging-celery1.zbra.io] out: Already up-to-date.
[staging-celery1.zbra.io] out:
[staging-celery1.zbra.io] run: sudo supervisorctl start celery
[staging-celery2.zbra.io] run: sudo -u ubuntu git pull origin develop
[staging-celery3.zbra.io] run: sudo -u ubuntu git pull origin develop
[staging-celery2.zbra.io] out: From github.com:insurancezebra/iz2
[staging-celery2.zbra.io] out: * branch develop -> FETCH_HEAD
[staging-celery2.zbra.io] out: Already up-to-date.
[staging-celery2.zbra.io] out:
[staging-celery2.zbra.io] run: sudo supervisorctl start celery
[staging-celery3.zbra.io] out: From github.com:insurancezebra/iz2
[staging-celery3.zbra.io] out: * branch develop -> FETCH_HEAD
[staging-celery3.zbra.io] out: Already up-to-date.
[staging-celery3.zbra.io] out:
[staging-celery3.zbra.io] run: sudo supervisorctl start celery
[staging-celery1.zbra.io] out: celery: started
[staging-celery1.zbra.io] out:
[staging-celery3.zbra.io] out: celery: started
[staging-celery3.zbra.io] out:
[staging-celery2.zbra.io] out: celery: started
[staging-celery2.zbra.io] out:
[staging-celery2.zbra.io] Executing task 'deploy_staging_celery'
[staging-celery3.zbra.io] Executing task 'deploy_staging_celery'
[staging-web1.zbra.io] run: python /web/.virtualenvs/send_deploy_success_email/src/zebra-deploy-email/send_deploy_success_email/send_deploy_success_email.py --host_username "[email protected]" --host_password "GnKZqRustGA555ZDgBTxfQ" --site_domain "https://staging.servers.thezebra.com" --environment "Staging" --project_name "iz2" --jira_deployer_username "dev" --jira_deployer_password "8yiwn33ksjenfksUF" --jira_projects_map "{'MOBI': 'Mobile', 'SITE': 'Site', 'AG': 'Agency'}" --default_deploy_changes_to_email "['[email protected]']" --default_deploy_changes_from_email "[email protected]" --newrelic_api_key "aa4175f527beb098227b0d1184057e0d9f78e1900a4960a" --newrelic_app_name "IZ (Staging)" --new_changes_file_path "new_changes.log"
[staging-web1.zbra.io] run: sudo -u ubuntu rm new_changes.log
Done.
Disconnecting from staging-web1.zbra.io... done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment