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