alanhe421 / toolkit

工具集
http://tool.alanhe.me
MIT License
1 stars 0 forks source link

travis-ci自动部署到VPS #20

Closed alanhe421 closed 6 years ago

alanhe421 commented 6 years ago

自动构建前的流程

  1. 本地修改PUSH到GitHub仓库
  2. 本地部署到VPS
  3. 手动启动服务

自动构建后

  1. 本地PUSH到GitHub仓库
  2. Travis监测到代码变动,执行构建脚本,SSH会话连接,传输文件到VPS,并重启服务
  3. 邮件提醒

总结

加入CI后,可以做到实时无误发版,节约了构建部署,重启服务这些机械化操作步骤

alanhe421 commented 6 years ago

https://uedsky.com/2016-06/travis-deploy/