learningequality/ka-lite — pull request #95 by bcipolli (2013-06-04 22:10:23+00:00)
Title: Script for updating kalite from a zip file

This branch depends on package_kalite and clean_settings_paths branches (currently outstanding pull requests).

** WARNING: If you want to test this on a branch with existing movies/data in your database, I highly recommend making a backup, as this code will touch those files (database should be safe, it's only copied; movie files may move, depending on what option you choose!) **

Usage:
python manage.py update # still updates via git
python manage.py update --file=path_to_zip_file # updates via zip

This branch provides a script that updates KA Lite using a zip file. It essentially:
#1 Prompts the user for an install location
#2 Unpacks files to a temp location
#3 Copies the database to the temp install, and migrates the schema
#4 Copies over local_settings
#5 Moves over movie files (only if specified by the user)
#6 Tests the server (as best it can)
#7 Moves the new install to the desired final location.

I tested this on MacOS and Windows XP.