my-deploy : 由nodejs寫的一個自動更新工具,理論支持全部語言(php、java、c#)的項目,支持全部git倉庫(bitbucket、github等)。php
Githubhtml
配置文件:java
{ "mode": "webhook", "url": "your project url of git use http", "localdir": "/path/of/your/local/project", "branch": "master", "port":"3100" "rules": [ { "type": "tag", "value": "[vV]\\d+" }, { "type": "commit", "value": "#[\\s\\S]*?deploy\\s*[\\s\\S]*?77" } ] }
配置文件:node
{ "mode": "pullwatch", "url": "your url of git use http", "localdir": "/path/of/your/local/project", "interval": 3000, "branch": "master", "rules": [ { "type": "tag", "value": "[vV]\\d+" }, { "type": "commit", "value": "#[\\s\\S]*?deploy\\s*[\\s\\S]*?77" } ] }
視頻演示git
簡單、方便的部署,讓你解放服務器的代碼更新,專心寫代碼,直接push,服務端自動更新。能夠由commit的信息中區分該提交是否須要更新的,靈活控制。github
該工具結合docker和集羣效果更佳,更好玩。歡迎star , fork!謝謝web