root / docs / upgrade / upgrade-0.14.8.rst @ 36fea6f9
History | View | Annotate | Download (1.7 kB)
1 | d3840a05 | Constantinos Venetsanopoulos | Upgrade to Synnefo v0.14.8 |
---|---|---|---|
2 | d3840a05 | Constantinos Venetsanopoulos | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
3 | d3840a05 | Constantinos Venetsanopoulos | |
4 | dafaa59c | Stratos Psomadakis | Synnefo v0.14.8 release introduced support for Debian Wheezy (and Django 1.4). |
5 | dafaa59c | Stratos Psomadakis | To upgrade from Squeeze to Wheezy you should make sure to change the |
6 | dafaa59c | Stratos Psomadakis | ``'ENGINE'`` option in ``/etc/synnefo/10-snf-webproject-databases.conf`` to |
7 | dafaa59c | Stratos Psomadakis | ``'django.db.backends.postgresql_psycopg2``. Replace ``postgresql_psycopg2`` |
8 | dafaa59c | Stratos Psomadakis | with the DB engine you are using. |
9 | dafaa59c | Stratos Psomadakis | |
10 | dafaa59c | Stratos Psomadakis | If you're upgrading to Synnefo v0.14.8 on Squeeze, you should also make sure to |
11 | dafaa59c | Stratos Psomadakis | have the Squezee backports repository installed, since ``snf-webproject`` |
12 | dafaa59c | Stratos Psomadakis | depends on ``>=python-django-south-0.7.3``, which on Squeeze is only available |
13 | dafaa59c | Stratos Psomadakis | from the backports repository. |
14 | dafaa59c | Stratos Psomadakis | |
15 | dafaa59c | Stratos Psomadakis | Since v0.14.8, Synnefo also ships an example Gunicorn configuration file, that |
16 | dafaa59c | Stratos Psomadakis | gets installed automatically at ``/etc/gunicorn.d/synnefo.example``. To use it |
17 | dafaa59c | Stratos Psomadakis | you need to do two things: |
18 | d3840a05 | Constantinos Venetsanopoulos | |
19 | d3840a05 | Constantinos Venetsanopoulos | 1. Disable your old configuration file by removing it. |
20 | d3840a05 | Constantinos Venetsanopoulos | [if you are upgrading from an older version and you had such a file] |
21 | d3840a05 | Constantinos Venetsanopoulos | |
22 | d3840a05 | Constantinos Venetsanopoulos | 2. Rename the file to ``/etc/gunicorn.d/synnefo`` to make it valid: |
23 | d3840a05 | Constantinos Venetsanopoulos | |
24 | d3840a05 | Constantinos Venetsanopoulos | .. code-block:: console |
25 | d3840a05 | Constantinos Venetsanopoulos | |
26 | d3840a05 | Constantinos Venetsanopoulos | # mv /etc/gunicorn.d/synnefo.example /etc/gunicorn.d/synnefo |
27 | d3840a05 | Constantinos Venetsanopoulos | |
28 | eb58cf5a | Christos Stavrakakis | Finally, add any other special configuration option needed by your deployment |
29 | eb58cf5a | Christos Stavrakakis | in this file. |
30 | eb58cf5a | Christos Stavrakakis | |
31 | eb58cf5a | Christos Stavrakakis | .. warning:: The logging location for the Synnefo gunicorn project has changed in |
32 | eb58cf5a | Christos Stavrakakis | /etc/gunicorn.d/synnefo.example: The default configuration no longer stores |
33 | eb58cf5a | Christos Stavrakakis | logs under /var/log/gunicorn/synnefo.log, but under |
34 | eb58cf5a | Christos Stavrakakis | /var/log/synnefo/gunicorn.log instead, for two reasons: |
35 | eb58cf5a | Christos Stavrakakis | a) uniformity with the rest of Synnefo, b) the version of gunicorn included in |
36 | eb58cf5a | Christos Stavrakakis | Wheezy now drops privileges to www-data:www-data properly, so it can no longer |
37 | eb58cf5a | Christos Stavrakakis | log under /var/log/gunicorn, which is owned by root. |