Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created July 1, 2011 22:04
Show Gist options
  • Save knowuh/1059500 to your computer and use it in GitHub Desktop.
Save knowuh/1059500 to your computer and use it in GitHub Desktop.
# backup the database:
mysqldump --add-drop-table -u rites -pXXXXXXXX -h discostu rites_pro > /web/tmp/rites-production_data.sql
ls -lah /web/tmp/rites-production_data.sql
# -rw-r--r-- 1 npaessel users 3.3G Jul 1 16:08 /web/tmp/rites-production_data.sql
# note previous release location.
/web/production/rites/releases/20110624202921
git co rites-staging
git pull
git co rites-production
git pull
git merge rites-staging
git status
# ☂ Your branch is ahead of 'origin/rites-production' by 722 commits. ☂
git push
cap rites-production deploy
cap rites-production deploy:migrate
cap rites-production rake:invoke task=db:backup:load_probe_configurations
cap rites-production rake:invoke task=app:fixup:use_jna_for_vernier_goio
# Warnings reminding me to enable / disable those probe interfaces, and letting me know 2396 users had been changed.
cap rites-production rake:invoke task=app:setup:import_gses_from_file
# copy over the various installer settings from staging (config/installer.yml and public/installers/* )
# edit the config settings file to change jnlp path to dev3
RAILS_ENV=production /usr/local/bin/bundle exec rake app:jnlp:delete_and_regenerate_maven_jnlp_resources
touch tmp/restart
# change the jnlp version to be the one specified in the installer.yml file.
(npaessel@BumblebeeMan)-(jobs:0)-(/web/production/rites/current)
(! 2775)-> ls -lah /web/tmp/rites-production_data.sql
-rw-r--r-- 1 npaessel users 3.3G Jul 1 16:08 /web/tmp/rites-production_data.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment