wiki:SysAdmin/ReleaseProcess

Version 13 (modified by Fran Boon, 16 years ago) ( diff )

--

Release Process

When making a Stable Branch from which to build releases, we need to do these tasks:

Check that all works with a released version of Web2Py

Ensure included files sane:

  • README
  • VERSION
  • CHANGELOG

Compress JS & CSS files

Browsers default to only downloading 2 files from the same origin at a time, so many files is very slow on high latency links.
We therefore consolidate into fewer, larger files when running in Production mode.

Since GIS is a specialised app which requires many files, it's JS & CSS are loaded separately when required.

The build script is static/scripts/tools/build.sahana.py
There is also a convenience wrapper for Windows to run this & also move results into their respective locations: static/scripts/tools/build.cmd

Our build process is based on the one used by MapFish (which is built on the one used by OpenLayers)

Clear Database

To clear database of test data & reset to defaults:

  • Close Web2Py
  • Start up in shell mode:
    python web2py.py -S sahana -M
    

Then run:

shn_db_clean(db)

(This function is configured in modules/sahana.py)

NB This assumes that all required settings are being generated upon intialisation as per the Framework

To clear the database of old tables which are no longer being used:

sqlite3 storage.db
drop table XXXXX;
.quit

Export Application

Upload to LaunchPad

Update Wiki InstallationGuide

Update Demo


DeveloperGuidelines

Note: See TracWiki for help on using the wiki.