mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-26 17:15:08 +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
|
||||
|
||||
cleanup() {
|
||||
rm -rf "apps/$APP"
|
||||
rm -rf sites/assets/*
|
||||
}
|
||||
|
||||
cd /frappe-bench
|
||||
|
||||
if ! test -d "apps/$APP/$APP/public"; then
|
||||
cleanup
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Add all not built assets
|
||||
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"
|
||||
cp -r sites/assets /out
|
||||
|
||||
# Cleanup
|
||||
rm -rf "apps/$APP"
|
||||
rm -rf sites/assets/*
|
||||
cleanup
|
||||
|
|
|
|||
Loading…
Reference in a new issue