Giter Club home page Giter Club logo

node-ci's Introduction

node-ci

该项目主要功能为流水线自动化部署

  1. 实现http连接断开时自动杀死进程,防止进程存在时间过长(linux/win)
  2. 实现每个项目的每个命令只能同时运行一个,防止重复操作进程过多

用法

  1. 克隆此项目到要部署的机器
  2. 在项目目录中复制.env.example并命名为.env
  3. 使用npm install命令进行包安装
  4. 更改.env配置文件
  5. 参照src/Commands/example.js加入部署时想要执行的命令
  6. 使用npm run start进行启动

请求示例

[POST] http://127.0.0.1:3000/

key=[ci的key]&project=[项目目录名]&command=[命令]

注意事项

  • ci请求参数统一json序列化放入命令进程的环境变量CI_ARGS中,即命令中可通过环境变量CI_ARGS获取

CI示例文件

  1. ExampleCommand
  2. ExampleCiRequest

node-ci's People

Contributors

qq958691165 avatar dependabot[bot] avatar

Stargazers

Akira avatar  avatar

Watchers

James Cloos avatar  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.