mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
🚧 Helper script to prepare back dist
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
parent
0109c3ff1d
commit
c6b540868f
2 changed files with 18 additions and 22 deletions
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
rm -rf ../dist || exit 1;
|
if [ ! -d "$1" ] || [ ! -d "$2" ]; then
|
||||||
|
echo "Expecting path to backend and destination directory"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf $2 || exit 1;
|
||||||
|
|
||||||
rsync -avr \
|
rsync -avr \
|
||||||
--exclude="/test" \
|
--exclude="/test" \
|
||||||
|
@ -7,4 +12,4 @@ rsync -avr \
|
||||||
--exclude="/target" \
|
--exclude="/target" \
|
||||||
--exclude="/scripts" \
|
--exclude="/scripts" \
|
||||||
--exclude="/.*" \
|
--exclude="/.*" \
|
||||||
../ ../dist/;
|
$1 $2;
|
||||||
|
|
31
manage.sh
31
manage.sh
|
@ -128,26 +128,17 @@ function build-release-frontend {
|
||||||
}
|
}
|
||||||
|
|
||||||
function build-release-backend-local {
|
function build-release-backend-local {
|
||||||
#if ! $(docker images | grep $IMGNAME | grep -q $REV); then
|
echo "Prepare backend release..."
|
||||||
# build-devenv
|
./backend/scripts/prepare-release.sh backend/ backend/dist/
|
||||||
#fi
|
#rm -rf backend/dist || exit 1;
|
||||||
#mkdir -p $HOME/.m2
|
#rsync -avr \
|
||||||
#CONTAINER=$IMGNAME:latest
|
# --exclude="/test" \
|
||||||
#echo "Running development image $CONTAINER to build backend release..."
|
# --exclude="/resources/public/media" \
|
||||||
#docker run -ti --rm \
|
# --exclude="/target" \
|
||||||
# -w /home/uxbox/uxbox/backend \
|
# --exclude="/scripts" \
|
||||||
# -v `pwd`:/home/uxbox/uxbox \
|
# --exclude="/.*" \
|
||||||
# -v $HOME/.m2:/home/uxbox/.m2 \
|
# backend/ backend/dist/;
|
||||||
# $CONTAINER ./scripts/prepare-release.sh
|
}#
|
||||||
rm -rf backend/dist || exit 1;
|
|
||||||
rsync -avr \
|
|
||||||
--exclude="/test" \
|
|
||||||
--exclude="/resources/public/media" \
|
|
||||||
--exclude="/target" \
|
|
||||||
--exclude="/scripts" \
|
|
||||||
--exclude="/.*" \
|
|
||||||
backend/ backend/dist/;
|
|
||||||
}
|
|
||||||
|
|
||||||
function build-release-backend {
|
function build-release-backend {
|
||||||
build-release-backend-local || exit 1;
|
build-release-backend-local || exit 1;
|
||||||
|
|
Loading…
Reference in a new issue