diff --git a/build.sh b/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..219f97edf052d29ce9ab3fb0a27f2e7ef7190e7a --- /dev/null +++ b/build.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +echo "build start" + +DEST=/Users/xiweicheng/tms/src/main/resources/static +SRC=/Users/xiweicheng/tms-frontend + +echo "DEST DIR: $DEST" +echo "SRC DIR: $SRC" + +echo "au pkg --env prod" + +cd $SRC +au pkg --env prod + +echo "rm page/scripts & page/index.html" + +rm -rf $DEST/page/scripts +rm -rf $DEST/page/index.html + +echo "cp tms-frontend to tms" + +cp -rf $SRC/scripts $DEST/page +cp -rf $SRC/index.html $DEST/page + +echo "build end" \ No newline at end of file diff --git a/index.html b/index.html index 1dd34487e4ef71839ba0eae1595a78d6a0a5e9df..0f074f4b974a754b322be25d43197fef0080848d 100644 --- a/index.html +++ b/index.html @@ -17,7 +17,7 @@
- +