Browse Source

Alterado diretório de instalação para /srv/sigi

producao
Marcio Mazza 10 years ago
parent
commit
32f27f388c
  1. 2
      bin/run_sigi
  2. 6
      etc/apache/sites-available/sigi.erb
  3. 2
      etc/cron.daily/sigi
  4. 2
      etc/cron.hourly/sigi
  5. 4
      etc/nginx/sites-available/sigi.vhost
  6. 2
      etc/supervisor/conf.d/sigi.conf
  7. 2
      puppet/manifests/site.pp

2
bin/run_sigi

@ -1,7 +1,7 @@
#!/bin/bash
NAME="sigi"
DJANGODIR=/var/aplicacoes/sigi
DJANGODIR=/srv/sigi
SOCKFILE=/var/run/sigi/sigi.sock
USER=sigi
GROUP=sigi

6
etc/apache/sites-available/sigi.erb

@ -2,9 +2,9 @@ NameVirtualHost 10.1.2.126:80
<VirtualHost 10.1.2.126:80>
ServerName sigi01h.interlegis.leg.br
WSGIScriptAlias /sigi /var/aplicacoes/sigi/sigi/wsgi.py
Alias /sigi/static /var/aplicacoes/sigi/static
Alias /sigi/sigiStatic /var/aplicacoes/sigi/sigiStatic
WSGIScriptAlias /sigi /srv/sigi/sigi/wsgi.py
Alias /sigi/static /srv/sigi/static
Alias /sigi/sigiStatic /srv/sigi/sigiStatic
ErrorLog /var/log/apache2/sigi-error.log

2
etc/cron.daily/sigi

@ -1,4 +1,4 @@
#!/bin/bash
cd /var/aplicacoes/django/sigi/sigi/
cd /srv/sigi/sigi/
python manage.py atualiza_uso_servico -v 0
python manage.py clearsessions -v 0

2
etc/cron.hourly/sigi

@ -1,3 +1,3 @@
#!/bin/bash
cd /var/aplicacoes/django/sigi/sigi
cd /srv/sigi/sigi
python manage.py gera_map_data

4
etc/nginx/sites-available/sigi.vhost

@ -12,11 +12,11 @@ server {
error_log /var/log/sigi/sigi-error.log;
location /static/ {
alias /var/aplicacoes/sigi/static/;
alias /srv/sigi/static/;
}
location /media/ {
alias /var/aplicacoes/sigi/media/;
alias /srv/sigi/media/;
}
location / {

2
etc/supervisor/conf.d/sigi.conf

@ -1,5 +1,5 @@
[program:sigi]
command = /var/aplicacoes/sigi/bin/run_sigi
command = /srv/sigi/bin/run_sigi
user = sigi
stdout_logfile = /var/log/sigi/sigi-supervisor.log
redirect_stderr = true

2
puppet/manifests/site.pp

@ -93,6 +93,8 @@ exec { 'collectstatic':
# TODO local_settings.py ...
###########################################################################
# NGINX

Loading…
Cancel
Save