[chore] update release script
This commit is contained in:
parent
6f7513ce82
commit
cce9975bf1
1 changed files with 21 additions and 5 deletions
|
@ -1,8 +1,24 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
while getopts s:o: flag
|
||||||
|
do
|
||||||
|
case "${flag}" in
|
||||||
|
s) server=${OPTARG};;
|
||||||
|
o) only=${OPTARG};;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ $only == backend ]]; then
|
||||||
|
lein uberjar
|
||||||
|
else
|
||||||
|
echo $only
|
||||||
npm run postcss:release
|
npm run postcss:release
|
||||||
npm run shadow:release
|
npm run shadow:release
|
||||||
cp -rf public/* resources/public
|
cp -rf public/* resources/public
|
||||||
rm -rf resources/public/js/cljs-runtime
|
rm -rf resources/public/js/cljs-runtime
|
||||||
|
|
||||||
lein uberjar
|
lein uberjar
|
||||||
|
fi
|
||||||
|
|
||||||
|
scp target/*-standalone.jar $server:/opt/prod/liberty-hu.jar
|
||||||
|
ssh $server "systemctl restart liberty-hu.service"
|
||||||
|
|
||||||
|
echo "done!"
|
||||||
|
|
Loading…
Reference in a new issue