Coder Social home page Coder Social logo

delktsai / little-finger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhentaoo/little-finger

0.0 2.0 0.0 335 KB

自动部署脚本:nodejs,express server,小型自动发布系统,适合个人开发者使用

JavaScript 92.95% HTML 7.05%

little-finger's Introduction

Little-Finger 前端自动部署工具

Usage

  1. git clone https://github.com/zhentaoo/little-finger
  2. npm install
  3. npm start(如果在服务器上部署推荐使用pm2,pm2 start bin/www)
  4. 如果有
  5. 如果有一个需要自动部署的项目,则在github配置对应的webhook(当该项目有新的commit时向little-finger发一个请求)
  6. 在little-finger中添加一条路由,类似router.post('/js-tower', cb)

设计思路

  1. 要知道github(gitlab)的repo是可以设置webhook的,如果repo有了新的commit,则会触发webhook
  2. 利用这个hook,请求自己事先部署好的server
  3. 当这个server收到hook,则执行git pull命令,拉取对应repo的最新代码

Feature

  1. 定义发布的多个阶段
  2. 一套完整的UI
  3. 完善的权限系统
  4. 回滚策略,构建失败时的补偿策略

Demo

看一下这个node server 稳定运行32天,仅仅占用不到40M的内存!!!

little-finger's People

Watchers

 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.