From 7f0589cf2c44da4052aa7919a76d1648e9ecbf3a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Thu, 13 Mar 2014 16:01:52 +0100 Subject: [PATCH] Move fedocal.wsgi to /var/www This so that it does not conflict with the .wsgi file installed by the RPM, so when we update the fedocal package we don't have to re-run the complete playbook, restarting apache is enough --- roles/fedocal/tasks/main.yml | 2 +- roles/fedocal/templates/fedocal.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/fedocal/tasks/main.yml b/roles/fedocal/tasks/main.yml index e4dc72b63b..e70926bf06 100644 --- a/roles/fedocal/tasks/main.yml +++ b/roles/fedocal/tasks/main.yml @@ -43,7 +43,7 @@ - { file: fedocal.cfg, location: /etc/fedocal } - { file: alembic.ini, location: /etc/fedocal } - { file: fedocal.conf, location: /etc/httpd/conf.d } - - { file: fedocal.wsgi, location: /usr/share/fedocal } + - { file: fedocal.wsgi, location: /var/www/ } tags: - config notify: diff --git a/roles/fedocal/templates/fedocal.conf b/roles/fedocal/templates/fedocal.conf index 27d3279b2b..c7845c120d 100644 --- a/roles/fedocal/templates/fedocal.conf +++ b/roles/fedocal/templates/fedocal.conf @@ -7,7 +7,7 @@ WSGIRestrictStdout On WSGIRestrictSignal Off WSGIPythonOptimize 1 -WSGIScriptAlias /calendar /usr/share/fedocal/fedocal.wsgi +WSGIScriptAlias /calendar /var/www/fedocal.wsgi WSGIProcessGroup fedocal