Skip to content

Instantly share code, notes, and snippets.

@someara
Created April 22, 2011 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save someara/937256 to your computer and use it in GitHub Desktop.
Save someara/937256 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
set -x
trap "echo EXITING THE SCRIPT" EXIT
export RAILS_ENV="mind"
set +e
/usr/local/bin/rvm-shell 'default' -c '
cd /var/app/paperless-mind/current && \
rake db:dump_cms'
/usr/local/bin/rvm-shell 'default' -c '
cd /var/app/paperless-mind/current && \
rake db:dump_schema_plus_cms
'
set -e
echo "more stuff"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment