Code Monkey home page Code Monkey logo

ping-base64-client's Introduction

ping-base64-client

ping-base64-client是一个部署客户端,需要配合服务端:ping-base64-webapi一起使用. 工作流程如下

  • 上传文件到服务器的指定目录
  • 解压文件到指定目录(可以省略)
  • 在服务器上运行一条命令

构建

go build

or

go install

使用

方式1: 通过命令行指定参数

ping-base64-client.exe -url http://192.168.3.9:10405/file/upload-run/ -file {localfile} -m {savePath} -d {unzipPath} -c "{cmd}"
-url url:服务器全url
-file localfile:本地文件通常是一个压缩包,上传到服务器上
-m savePath:上传文件保存路径
-d unzipPath:上传文件解压路径
-c cmd:解压完成执行的命令

eg

ping-base64-client -url http:/xxxx:10405/file/upload-run/ -file target\malang-pen-api-server-1.0.0.jar -m /data/apps/webapps/malang_pen_api_server -c "docker restart malang_pen_api_server"

方式2 : 通过配置文件指定参数

ping-base64-client -a upload-run

运行过程中会读取配置配置ping-base64.toml,文件示例如下

[upload-run]
url = "http://xxxx/file/upload-run/"
file = "target/malang-pen-api-server-1.0.0.jar"
m = "/data/apps/webapps/malang_pen_api_server"
c = "docker restart malang_pen_api_server"

注: 命令行的参数优先级高于配置文件

ping-base64-client's People

Stargazers

Tong Li avatar

Watchers

Tong Li avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.