mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-27 09:15:10 +00:00
Ignore apps that have no frontend code instead of failing
This commit is contained in:
parent
1f5a194ee9
commit
73f7d944ab
1 changed files with 11 additions and 3 deletions
|
|
@ -4,8 +4,18 @@ set -x
|
||||||
|
|
||||||
APP=$1
|
APP=$1
|
||||||
|
|
||||||
|
cleanup() {
|
||||||
|
rm -rf "apps/$APP"
|
||||||
|
rm -rf sites/assets/*
|
||||||
|
}
|
||||||
|
|
||||||
cd /frappe-bench
|
cd /frappe-bench
|
||||||
|
|
||||||
|
if ! test -d "apps/$APP/$APP/public"; then
|
||||||
|
cleanup
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Add all not built assets
|
# Add all not built assets
|
||||||
cp -r "apps/$APP/$APP/public" "/out/assets/$APP"
|
cp -r "apps/$APP/$APP/public" "/out/assets/$APP"
|
||||||
|
|
||||||
|
|
@ -19,6 +29,4 @@ echo "$APP" >>sites/apps.txt
|
||||||
yarn --cwd apps/frappe run production --app "$APP"
|
yarn --cwd apps/frappe run production --app "$APP"
|
||||||
cp -r sites/assets /out
|
cp -r sites/assets /out
|
||||||
|
|
||||||
# Cleanup
|
cleanup
|
||||||
rm -rf "apps/$APP"
|
|
||||||
rm -rf sites/assets/*
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue