Create setup_libs.sh
This commit is contained in:
parent
5c173f0ffb
commit
5ba9ee52ea
1 changed files with 18 additions and 0 deletions
18
setup_libs.sh
Executable file
18
setup_libs.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue