-
Notifications
You must be signed in to change notification settings - Fork 1
How to Update
totakke edited this page Dec 14, 2012
·
4 revisions
$ cd /home/davdav/davdav
$ sudo -u davdav git pull
$ sudo service apache2 restart
Rename a configuration file to avoid update.
$ cd /home/davdav/davdav
$ sudo -u davdav mv config/davdav.ini config/davdav.ini_
Update davdav.
$ sudo -u davdav git pull
Create a new configuration file and import content from davdav.ini_
manually.
$ sudo -u davdav cp config/davdav.ini.example config/davdav.ini
Add WSGIPassAuthorization On
to apache2 configuration.
<VirtualHost *:80>
ServerName davdav.example.com
WSGIScriptAlias / /home/davdav/davdav/app/davdav.wsgi
WSGIDaemonProcess davdav user=www-data group=www-data processes=5 threads=10 home=/home/davdav/davdav/app python-path=/home/davdav/davdav/app
WSGIProcessGroup davdav
WSGIPassAuthorization On
Alias /thumbnail /home/davdav/thumbnail
</VirtualHost>
Restart server.
$ sudo service apache2 restart