From ffc824312de2af763e46d3d3fbc4e8b2ae302257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Thu, 25 Apr 2013 20:59:31 -0300 Subject: [PATCH] =?UTF-8?q?Atualiza=C3=A7=C3=A3o=20de=20forma=20de=20deplo?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/apache/django.wsgi | 4 ++-- etc/apache/sites-available/sigi.erb | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/etc/apache/django.wsgi b/etc/apache/django.wsgi index b104872..02e5e49 100755 --- a/etc/apache/django.wsgi +++ b/etc/apache/django.wsgi @@ -2,8 +2,8 @@ # -*- mode: python -*- import os, sys -sys.path.insert(0, '/var/aplicacoes/django/sigi') -sys.path.insert(0, '/var/aplicacoes/django/sigi/sigi') +sys.path.insert(0, '/var/interlegis/sigi') +sys.path.insert(0, '/var/interlegis/sigi/sigi') os.environ['DJANGO_SETTINGS_MODULE'] = 'sigi.settings' from django.core.management.validation import get_validation_errors diff --git a/etc/apache/sites-available/sigi.erb b/etc/apache/sites-available/sigi.erb index 5dc09d6..8d8db30 100644 --- a/etc/apache/sites-available/sigi.erb +++ b/etc/apache/sites-available/sigi.erb @@ -1,12 +1,12 @@ NameVirtualHost 10.1.2.48:80 - ServerName sigi.interlegis.gov.br + ServerName sigi.interlegis.leg.br - Redirect / https://intranet.interlegis.gov.br/sigi + Redirect / https://intranet.interlegis.leg.br/sigi - WSGIScriptAlias /sigi /var/aplicacoes/django/SIGI/etc/apache/django.wsgi - Alias /sigi/media /var/aplicacoes/django/SIGI/media/ - Alias /sigi/admin_media /usr/local/lib/python2.4/site-packages/django/contrib/admin/media/ + WSGIScriptAlias /sigi /var/interlegis/sigi/etc/apache/django.wsgi + Alias /sigi/media /var/interlegis/django/sigi/media/ + Alias /sigi/admin_media /usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/ ErrorLog /var/log/apache2/sigi-error.log @@ -16,4 +16,4 @@ NameVirtualHost 10.1.2.48:80 CustomLog /var/log/apache2/sigi-access.log combined ServerSignature Off - + \ No newline at end of file