From 5ba9ee52ea5057ad30882e43adf78e0fa0f91b53 Mon Sep 17 00:00:00 2001 From: PCoder Date: Fri, 31 May 2024 19:08:08 +0530 Subject: [PATCH] Create setup_libs.sh --- setup_libs.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 setup_libs.sh diff --git a/setup_libs.sh b/setup_libs.sh new file mode 100755 index 0000000..ebd4ea3 --- /dev/null +++ b/setup_libs.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +cd /app +rm -rf node_modules +yarn install +mkdir -p /app/publichealth/static/libs +echo "created /app/publichealth/static/libs contents " +ls /app/publichealth/static/libs +cp -rf node_modules/@bower_components/* /app/publichealth/static/libs/ + +# static resources +python manage.py collectstatic --no-input -i media --settings=publichealth.settings.production +python manage.py compress --force --settings=publichealth.settings.production + +if [ -d /app/static ]; then + echo "Copying" + cp -a /app/static /pod +fi