1 == Cron script changes ==
3 The patchwork cron script has been moved to a manage.py command. Instead
4 of running patchwork-cron.py, run:
8 == Upgrading to 3b8a61c ==
10 Recent commits have changed a few admin-visible components of patchwork, so
11 upgrading to post-commit 3b8a61c involves a few steps:
13 - Update the database schema, by running the 015-add-patch-tags.sql script,
14 and re-run the grants script.
16 For example, on postgres:
18 psql -f lib/sql/migration/015-add-patch-tags.sql patchwork
19 psql -f lib/sql/grant-all.postgres.sql patchwork
21 - Update to the new settings infrastructure. By default, settings are read
22 from patchwork/settings/production.py. To migrate, use the template:
24 cp patchwork/settings/production{.example,}.py
26 and merge your previous settings (from apps/local_settings.py) into
29 - Fixup external references to apps/
31 The apps/ directory is gone; the patchwork module is now in the top-level
32 directory. If you have scripts that run anything from apps/ (eg, incoming
33 mail parsers that call parsemail.sh, and cron scripts), then remove the apps/
36 apps/patchwork/ -> patchwork/
38 (or you can create a symlink - apps/ -> .)
40 - Update any external scripts to use the new settings module
42 If you have been running scripts (eg, from cron) that set the
43 DJANGO_SETTINGS_MODULE environment variable, you'll need to update that
44 to the new settings system. Typically:
46 DJANGO_SETTINGS_MODULE=patchwork.settings.production
48 The manage.py script has been moved from apps/ into the top-level directory
51 - Run the 'collectstatic' management command:
53 ./manage.py collectstatic
55 Ensure that the STATIC_ROOT setting points somewhere sensible (eg, the
56 absolute path of htdocs/static in the patchwork tree).
58 - Update apache to use the new static content.
60 Static content is now in all under STATIC_ROOT, the apache configuration
61 should be simpler now. The core config will be:
63 DocumentRoot /srv/patchwork/htdocs/
64 Alias /static/ /srv/patchwork/htdocs/static/
65 WSGIScriptAlias / /srv/pathchwork/lib/apache2/patchwork.wsgi
66 WSGIPassAuthorization On