Skip to content
This repository was archived by the owner on Oct 9, 2018. It is now read-only.

Web 应用版本上线流程 #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions Web 应用版本上线流程.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Web 应用版本上线流程

1. 检查 *master* 是否和 *origin/master* 平齐;

2. 检查本地 Git 目录下是否干净,没有未 commit 或 stash 的改动;

3. 跳版本:
如果这个版本引入了新功能,`npm version minor`;
如果这个版本只是对已有功能做了修正和完善, `npm version patch`;

4. 推送版本改动到 Github:

git push origin && git push --tags origin

5. 发布。

## Booking、Studio 发布

确认自己在 *master* 分支上,然后
git push -f prod

## Gateway 发布

docker build . -t gateway:<version>
docker tag gateway:<version> docker.theweflex.com/gateway:<version>
docker push docker.theweflex.com/gateway:<version>
ssh [email protected] 'spawn gateway <version>'

如果有数据库迁移脚本需要运行,

scp -r migration [email protected]:/opt/
ssh [email protected]
(on remote): mongo $MONGO_URI /opt/migration/<script file>