Skip to content

Upgrades

sjlegg edited this page Aug 28, 2012 · 3 revisions

General Information

Process is to develop and test on local machine (typically Mac OS X), with main changes being pushed into the "master" branch of the repository. Once master is stable, move changes onto the Staging system (ives.oucs in the opms_master virtual environment) and test using the Django test server. Once that is cleared, merge "master" with "production" and then move changes onto the Production system (ives.oucs, again, in the opms_production virtual environment). See steps below for more details and reminders on how to handle these processes in general.

Staging

Assuming all code and updates have been made to the "master" branch of the repository, do the following:

  • Login to ives.oucs
  • workon opms_master to activate the virtual environment
  • cd [ProjectPath] to find the git project root (folder with README and requirements.txt in)
  • Check for any system level updates that need to be done, and any system libraries that are needed by the python dependencies.
  • pip install -U -r requirements.txt to update the dependencies
  • cd opms to enter the django project root
  • python manage.py syncdb to bring the database into line
  • python manage.py loaddata opms/core/fixtures/initial_sitetree.json to update the sitetree fixtures
  • Copy local_settings.py.template to local_settings.py and add all the correct username/password details etc.
  • Edit settings.py to set WAIT_GET = True and YOUR_INSTITUTION = "Your Institution Name".

Clone this wiki locally