Skip to content

Instantly share code, notes, and snippets.

@jtg567
Created January 10, 2016 08:10
Show Gist options
  • Save jtg567/36671433d5315ea107b7 to your computer and use it in GitHub Desktop.
Save jtg567/36671433d5315ea107b7 to your computer and use it in GitHub Desktop.
Update SQLite DB on Openshift (add to deploy action hook script)
cd $OPENSHIFT_DATA_DIR
echo "Comparing/Updating main_post table in db to sync production to local"
./sqldiff db.sqlite3 $OPENSHIFT_REPO_DIR/data/db.sqlite3 --table main_post > update_db.sql
sqlite3 db.sqlite3 < update_db.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment