Update django-redis-cache and fix vagrant setup
This commit is contained in:
parent
1ac47885d0
commit
4feb567af7
4 changed files with 8 additions and 5 deletions
|
@ -15,8 +15,8 @@ server {
|
||||||
rewrite ^/gestion$ http://localhost:8080/gestion/ redirect;
|
rewrite ^/gestion$ http://localhost:8080/gestion/ redirect;
|
||||||
|
|
||||||
# Les pages statiques sont servies à part.
|
# Les pages statiques sont servies à part.
|
||||||
location /gestion/static { try_files $uri $uri/ =404; }
|
location /static { try_files $uri $uri/ =404; }
|
||||||
location /gestion/media { try_files $uri $uri/ =404; }
|
location /media { try_files $uri $uri/ =404; }
|
||||||
|
|
||||||
# On proxy-pass les requêtes vers les pages dynamiques à daphne
|
# On proxy-pass les requêtes vers les pages dynamiques à daphne
|
||||||
location / {
|
location / {
|
||||||
|
|
|
@ -11,7 +11,7 @@ WorkingDirectory=/vagrant
|
||||||
Environment="DJANGO_SETTINGS_MODULE=gestioasso.settings.dev"
|
Environment="DJANGO_SETTINGS_MODULE=gestioasso.settings.dev"
|
||||||
ExecStart=/home/vagrant/venv/bin/daphne \
|
ExecStart=/home/vagrant/venv/bin/daphne \
|
||||||
-u /srv/gestiocof/gestiocof.sock \
|
-u /srv/gestiocof/gestiocof.sock \
|
||||||
gestioasso.asgi:channel_layer
|
gestioasso.asgi:application
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -10,7 +10,10 @@ Group=vagrant
|
||||||
TimeoutSec=300
|
TimeoutSec=300
|
||||||
WorkingDirectory=/vagrant
|
WorkingDirectory=/vagrant
|
||||||
Environment="DJANGO_SETTINGS_MODULE=gestioasso.settings.dev"
|
Environment="DJANGO_SETTINGS_MODULE=gestioasso.settings.dev"
|
||||||
ExecStart=/home/vagrant/venv/bin/python manage.py runworker
|
ExecStart=/home/vagrant/venv/bin/python manage.py runworker \
|
||||||
|
'kfet.open.team' \
|
||||||
|
'kfet.open.base' \
|
||||||
|
'kpsul'
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
psycopg2<2.8
|
psycopg2<2.8
|
||||||
|
|
||||||
# Redis
|
# Redis
|
||||||
django-redis-cache==2.1.*
|
django-redis-cache==3.0.*
|
||||||
redis~=2.10.6
|
redis~=2.10.6
|
||||||
channels-redis==2.4.*
|
channels-redis==2.4.*
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue