Skip to content

Instantly share code, notes, and snippets.

@kporangehat
Created November 16, 2012 19:19
Show Gist options
  • Save kporangehat/4090058 to your computer and use it in GitHub Desktop.
Save kporangehat/4090058 to your computer and use it in GitHub Desktop.
scp /some/path/client_dbs/com_shotgunstudio_someclient-pgsql-20121027-173252-v4.1.4-r37048.sql.gz shotgun@shotgun.vm:/home/shotgun/
ssh shotgun@shotgun.vm
cd shotgun_deploy
vi settings/vm_shotgun_client_test.rb
# edit the :repository line to match the version of code you want to deploy with this db.
# Usually it will match the current version of the db file, so in this case:
# set :repository, "https://svn.shotgunsoftware.com/tags/v4.1.4"
# save the file
export TARGET=settings/vm_shotgun_client_test.rb
cap sg_db_replace -s db_backup_file_to_load=/home/shotgun/com_shotgunstudio_someclient-pgsql-20121027-173252-v4.1.4-r37048.sql.gz
# lots of output here from Capistrano
# Assuming no errors were generated, you're done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment