增加admin_center管理JOB
This commit is contained in:
parent
c402ddd08a
commit
4c8219477d
20
publish_admin.sh
Normal file
20
publish_admin.sh
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ "${PROJECT_PATH}" == "" ]; then
|
||||||
|
echo "PROJECT_PATH IS NOT FOUND"
|
||||||
|
# shellcheck disable=SC2242
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${APP_ID}" == "" ]; then
|
||||||
|
echo "APP_ID IS NOT FOUND"
|
||||||
|
# shellcheck disable=SC2242
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 切换到项目目录
|
||||||
|
# shellcheck disable=SC2164
|
||||||
|
# shellcheck disable=SC2009
|
||||||
|
cd "${PROJECT_PATH}" && rm -rf "${APP_ID}" && git clone www@git.zhangdeman.cn:zhangdeman/"${APP_ID}".git
|
||||||
|
|
||||||
|
echo "${APP_ID}服务启动成功"
|
Loading…
Reference in New Issue
Block a user