From d721dbb6c9bb9d5485f4760c1174b668c774fda5 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 9 Oct 2024 16:24:43 +0530 Subject: pip install -U Django --- blocks/install.sh | 5 +++++ blocks/requirements.txt | 2 +- blocks/run.sh | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/blocks/install.sh b/blocks/install.sh index f9f67d74..4ba6738a 100755 --- a/blocks/install.sh +++ b/blocks/install.sh @@ -33,6 +33,11 @@ sed -i -e '/^\s*location \/ {/,/^\s*}/c\ location /django_static/ {\ proxy_pass http://127.0.0.1:8000;\ }\ +\ + location /resources/ {\ + proxy_pass http://127.0.0.1:3500;\ + expires 7d;\ + }\ \ location /ws {\ proxy_pass http://127.0.0.1:3500;\ diff --git a/blocks/requirements.txt b/blocks/requirements.txt index 5ba408bc..cf3b084b 100644 --- a/blocks/requirements.txt +++ b/blocks/requirements.txt @@ -13,7 +13,7 @@ click-plugins==1.1.1 click-repl==0.2.0 cryptography==43.0.1 defusedxml==0.7.1 -Django==4.2.15 +Django==4.2.16 django-cors-headers==3.13.0 django-filter==22.1 django-templated-mail==1.1.1 diff --git a/blocks/run.sh b/blocks/run.sh index 02e6e55c..b7634a34 100755 --- a/blocks/run.sh +++ b/blocks/run.sh @@ -10,7 +10,7 @@ celery -A blocks.celery_tasks worker --loglevel INFO --concurrency 1 & cd eda-frontend if test "$1" = 'prod'; then - serve -l 3500 -n -s --no-port-switching build & + serve -l 127.0.0.1:3500 -n -s --no-port-switching build & else npm start & fi -- cgit