This is an automated email from the ASF dual-hosted git repository.
jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris-manager.git
The following commit(s) were added to refs/heads/master by this push:
new 4ef5f46 Optimize compilation scripts (#22)
4ef5f46 is described below
commit 4ef5f46993cba4d3309438ade356eafc401b69b9
Author: songchuanyuan <[email protected]>
AuthorDate: Mon Mar 28 13:51:26 2022 +0800
Optimize compilation scripts (#22)
Optimize compilation scripts
---
build.sh | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/build.sh b/build.sh
index 4dfb601..7a361db 100644
--- a/build.sh
+++ b/build.sh
@@ -15,6 +15,11 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
+curdir=`dirname "$0"`
+curdir=`cd "$curdir"; pwd`
+
+export BUILD_HOME=`cd "$curdir"; pwd`
+echo "$BUILD_HOME"
echo "build doris manager home path"
@@ -27,6 +32,16 @@ echo "build doris manager frontend end"
cd ../
echo "copy doris manager web resources to server"
+
+echo "Check whether the front end is compiled successfully"
+export FRONTEND_DIR="$BUILD_HOME/frontend/dist"
+if [ ! -d $FRONTEND_DIR ]; then
+ echo "Error: Front end compilation failed, please check the compilation
log."
+ exit 1
+fi
+
+echo "The front end is compiled successfully"
+
rm -rf manager/manager-server/src/main/resources/web-resource
mv frontend/dist manager/manager-server/src/main/resources/web-resource
echo "copy doris manager web resources to server end"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]