广告平台(媒体使用)
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmd_task.sh 223 B

3 달 전
123456789
  1. #!/bin/bash
  2. APP=task
  3. BasePath=$(dirname $(readlink -f $0))
  4. CfgPath=$BasePath/etc/task.yml
  5. cd $BasePath
  6. rm -rf $BasePath/bin/$APP
  7. go build -o $BasePath/bin/$APP $BasePath/cmd/$APP/main.go \
  8. && $BasePath/bin/$APP -c=$CfgPath