From da930f2565f0640911499b3cc790c135993f30ee Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Sat, 18 Apr 2020 15:58:07 +0800 Subject: [PATCH] 提交脚本 --- src/HttpServer/main/build.sh | 11 +++++++++++ src/HttpServer/main/ll.sh | 1 + src/HttpServer/main/run.sh | 3 +++ 3 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 src/HttpServer/main/build.sh create mode 100644 src/HttpServer/main/ll.sh create mode 100644 src/HttpServer/main/run.sh 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