Go框架demo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

51 lines
1008 B

#!/bin/sh
# run_bee.sh
# This script for run beego projects for dev.
# @version 170227:1
# @author zhangxuhong <zhangxuhong@xitu.io>
#
# [config]
echo "-[config]-"
# ----------------------------[manual config here]------------------------------
# REPO_SRC=/data/repo/collection_set_api
# BUILD_TARGET=collection_set_api
BEE_PATH=$2
# ------------------------------------------------------------------------------
echo -e "\033[34mREPO_SRC set to: ${REPO_SRC}\033[0m"
echo -e "\033[34mBUILD_TARGET set to: ${BUILD_TARGET}\033[0m"
echo ""
sleep 1
# [set env]
echo "-[set env]-"
# $GOBIN
export GOBIN="${REPO_SRC}/bin"
echo -e "\033[34mGOBIN set to: ${GOBIN}\033[0m"
# $GOPATH
export GOPATH="${REPO_SRC}"
echo -e "\033[34mGOPATH set to: ${GOPATH}\033[0m"
echo ""
# run
if [ "${BEE_PATH}" == "" ]; then
echo "please input bee executable file loacation to run this scripts, like :"
echo "./ci.sh run_bee /data/bin/bee"
exit 1;
fi
`${BEE_PATH} run ${REPO_SRC}/src`
echo "done."