summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2024-10-09 16:24:43 +0530
committerSunil Shetye2024-10-09 16:25:01 +0530
commitd721dbb6c9bb9d5485f4760c1174b668c774fda5 (patch)
tree893f5aacaf10ad77db75e120087ba1d52075caea
parent9b7cf800a6826d09cbbde5545c77cb23fcd5f190 (diff)
downloadCommon-Interface-Project-d721dbb6c9bb9d5485f4760c1174b668c774fda5.tar.gz
Common-Interface-Project-d721dbb6c9bb9d5485f4760c1174b668c774fda5.tar.bz2
Common-Interface-Project-d721dbb6c9bb9d5485f4760c1174b668c774fda5.zip
pip install -U Django
-rwxr-xr-xblocks/install.sh5
-rw-r--r--blocks/requirements.txt2
-rwxr-xr-xblocks/run.sh2
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
@@ -34,6 +34,11 @@ sed -i -e '/^\s*location \/ {/,/^\s*}/c\
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;\
proxy_http_version 1.1;\
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