Giter Club home page Giter Club logo

git-hook-auto-update's Introduction

#git-hook

简介

基于php和swoole的简易可靠的代码自动同步工具,可指定分支,指定服务器进行更新

流程

输入图片说明

特点

0: 配置化, 配置支持自举
1:可指定分支

使用

0:  安装 swoole扩展, https://github.com/swoole/swoole-src

1:  在分发服务器上执行 php server.php --ip=你服务器ip(默认0.0.0.0) --port=端口(9501) --worker=工作进程数(默认4) -d(守护进程化)

2:  代码业务服务器执行 php udp.php --ip=你服务器ip(默认0.0.0.0) --port=端口(8991) -d(守护进程化)

3: 修改config.php里的相关配置

4:  git的hook shell里可通过 curl执行 http://ip:port (分发服务器的外网ip和端口),进行代码分发

5: 提交代码,测试 (注意服务器的防火墙打开相关端口的外部访问权限)

git-hook-auto-update's People

Contributors

shenzhe avatar

Watchers

 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.