This repository contains the source code for the Cambridge South Hockey Club website.
Full documentation (work-in-progress) can be found here: cshc.readthedocs.io
- On the EC2 instance:
mysqldump --skip-extended-insert --compact --default-character-set=utf8 cshc > dump_mysql.sql
-
Download the
dump_mysql.sql
file to your local machine. -
Download the
mysql2sqlite
script from here -
Run the script to create a new sqlite database file from the MySQL export:
./mysql2sqlite dump_mysql.sql | sqlite3 db.sqlite3
-
Replace the existing
src/db.sqlite3
file with the one created in the previous step. -
Copy the media files from production to the local dev environment. Note this also copies them to the (unused) staging bucket.
python manage.py media_copy --local