github部署到生产环境
来源:互联网 发布:乐视手机没有4g网络 编辑:程序博客网 时间:2024/04/29 20:20
步骤:
① 把release-v1.0.0分支代码合并到master;
release可能有新代码提交,当合并有冲突以release分支为准;
② 把release-v1.0.0分支代码合并到dev;
代码以dev分支代码为准
③ 基于dev分支,生成一个release-v1.0.1分支;
const path = require('./path.js')const shell = require('shelljs')path.forEach(p => { console.log(`~/smartsport/${p}`); shell.cd(`~/smartsport/${p}`); shell.exec(`git add .`); shell.exec(`git reset --hard`); shell.exec(`git fetch origin`); shell.exec(`git checkout -b release-v1.0.1 origin/dev`); shell.exec(`git push origin release-v1.0.1`); shell.echo(`${p} update success`);})shell.exit(1);
④ 打标签
const path = require('./path.js')const shell = require('shelljs')path.forEach(p => { console.log(`~/smartsport/${p}`); shell.cd(`~/smartsport/${p}`); shell.exec(`git add .`); shell.exec(`git reset --hard`); shell.exec(`git fetch origin`); shell.exec(`git checkout master`); shell.exec(`git reset origin/master --hard`); shell.exec(`git tag -d 'v1.0.0'`); shell.exec(`git tag 'v1.0.1' -m '2017-12-01'`); shell.exec(`git push -f origin --tag`);shell.echo(`${p} update success`);})shell.exit(1);
阅读全文
0 0
- github部署到生产环境
- 将Solr5部署到生产环境
- 10_部署到生产环境
- 生产环境部署Solr
- 生产环境部署hadoop
- Vue 生产环境部署
- 用git部署网站代码到生产环境VPS
- ruby on rails 部署到生产环境的问题
- 用git部署网站代码到生产环境VPS
- laravel5项目部署到生产环境的最佳实践
- vue项目部署到生产环境(Tomcat为例)
- 生产环境中,如何将Kubernetes部署到AWS?
- Mycat生产实践---生产环境部署
- 生产环境部署之--Fastdfs 生产环境部署配置
- tornado 11、部署生产环境
- Spring Boot 生产环境部署
- react+webpack部署生产环境
- 生产环境DRBD部署安装
- 调微信App支付接口
- 动态规划--矩阵连乘
- Linux网络编程之UDP
- oracle官方培训地址
- XMLHttpRequest对象
- github部署到生产环境
- Web前端开发精品课HTML CSS JavaScript基础教程第九章课后编程题答案
- SQL数据库查询练习题及答案(四十五道题)
- 线程从零开始
- iOS后续开发 数据统计表
- 泊松点过程(PPP)&泊松簇过程(PCP)《用泊松过程生成空间点的程序》
- 在线最优化、正则化、FTRL
- 使用redis解决分布式单例
- Revit二次开发之获取参数绑定的类别【比目鱼原创】