增加启动命令

This commit is contained in:
zhou-hao 2020-09-21 17:12:03 +08:00
parent c9fda0f30c
commit d11eadfa98
1 changed files with 8 additions and 0 deletions

8
run.sh Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
./mvnw clean package -Dmaven.test.skip=true -Dmaven.build.timestamp="$(date "+%Y-%m-%d %H:%M:%S")"
if [ $? -ne 0 ];then
echo "构建失败!"
else
java -jar "$(pwd)/jetlinks-standalone/target/jetlinks-standalone.jar"
fi