mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 15:39:50 -05:00
✨ Improve backend bundle start script.
This commit is contained in:
parent
919a045088
commit
ded42707ab
1 changed files with 4 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
CLASSPATH=`(clojure -Spath)`
|
CLASSPATH=`(clojure -Spath)`
|
||||||
NEWCP="./resources:./app.jar"
|
NEWCP="./resources:./main:./common"
|
||||||
|
|
||||||
rm -rf ./target/dist
|
rm -rf ./target/dist
|
||||||
mkdir -p ./target/dist/deps
|
mkdir -p ./target/dist/deps
|
||||||
|
@ -15,10 +15,9 @@ for item in $(echo $CLASSPATH | tr ":" "\n"); do
|
||||||
done
|
done
|
||||||
|
|
||||||
cp ./resources/log4j2-bundle.xml ./target/dist/log4j2.xml
|
cp ./resources/log4j2-bundle.xml ./target/dist/log4j2.xml
|
||||||
|
cp -r ./src ./target/dist/main
|
||||||
|
cp -r ../common ./target/dist/common
|
||||||
|
|
||||||
clojure -Ajar
|
|
||||||
|
|
||||||
cp ./target/app.jar ./target/dist/app.jar
|
|
||||||
echo $NEWCP > ./target/dist/classpath;
|
echo $NEWCP > ./target/dist/classpath;
|
||||||
|
|
||||||
tee -a ./target/dist/run.sh >> /dev/null <<EOF
|
tee -a ./target/dist/run.sh >> /dev/null <<EOF
|
||||||
|
@ -47,10 +46,7 @@ if [ -f ./environ ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
\$JAVA_CMD \$JVM_OPTS -classpath \$CP -Dlog4j.configurationFile=./log4j2.xml "\$@" clojure.main -m app.main
|
exec \$JAVA_CMD \$JVM_OPTS -classpath \$CP -Dlog4j.configurationFile=./log4j2.xml "\$@" clojure.main -m app.main
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod +x ./target/dist/run.sh
|
chmod +x ./target/dist/run.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue