1 Star 0 Fork 5

hyq / echo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
runMetaProd.sh 722 Bytes
一键复制 编辑 原始数据 按行查看 历史
virjar 提交于 2021-03-14 16:36 . opensource
#!/usr/bin/env bash
now_dir=`pwd`
cd `dirname $0`
history_pid=`ps -ef | grep echo-meta-server | grep -v "grep" | awk '{print $2}'`
echo history_pid:${history_pid}
if [ -n "${history_pid}" ] ;then
echo kill pid ${history_pid}
kill -9 ${history_pid}
fi
echo refresh code
#git clean -dfx
git pull
mvn -Pprod -Pint -Dmaven.test.skip=true install
cd echo-meta-server
echo "assemble jar"
mvn -Pprod -Pint -Dmaven.test.skip=true package
cd ..
echo "run project"
nohup java -jar echo-meta-server/target/echo-meta-server-0.0.1.jar >/dev/null 2>&1 &
echo "script success..."
cd ${now_dir}
sleep 2
now_pid=`ps -ef | grep echo-meta-server | grep -v "grep" | awk '{print $2}'`
echo project_running_on_pid:${now_pid}
1
https://gitee.com/dailyfresh_project/echo.git
git@gitee.com:dailyfresh_project/echo.git
dailyfresh_project
echo
echo
master

搜索帮助