Commit 2421208c authored by 黎博's avatar 黎博

修改下go.sh

parent 17246f60
......@@ -29,7 +29,15 @@ ln -s "${logdir}" "${package_path}/logs"
echo "start"
./main
startCmd=`curl -s -m 5 "http://holmes.liangkebang.com/docker/project/get_info?projectName=${SYSTEM_NAME}&key=start_command"`
namespace="$NAMESPACE"
finalCmd=`echo $startCmd | sed "s#place-holder#${namespace}#g"`
# ./main
nohup $finalCmd &
if [[ $DEBUG == 1 ]]; then
echo 'debug'
tail -f ~/.vimrc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment