diff --git a/src/HttpServer/main/build.sh b/src/HttpServer/main/build.sh new file mode 100644 index 0000000..6bf4095 --- /dev/null +++ b/src/HttpServer/main/build.sh @@ -0,0 +1,11 @@ +#!/usr/bin +export GOPATH=/home/luheng/happycat +echo "begin dos2unix..." +find ../ -name '*.go' | xargs dos2unix + +echo "begin build..." +go build +echo "end build..." +echo "start run..." +mv main HAPPYCATSRV +sh run.sh diff --git a/src/HttpServer/main/ll.sh b/src/HttpServer/main/ll.sh new file mode 100644 index 0000000..9cf0511 --- /dev/null +++ b/src/HttpServer/main/ll.sh @@ -0,0 +1 @@ +ps -ef|grep HAPPYCATSRV diff --git a/src/HttpServer/main/run.sh b/src/HttpServer/main/run.sh new file mode 100644 index 0000000..900515b --- /dev/null +++ b/src/HttpServer/main/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh +pkill HAPPYCATSRV +nohup ./HAPPYCATSRV -conf_path=../conf/world.xml -logpath=./log & -- libgit2 0.21.0