Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
opms-command
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
赵凯
opms-command
Commits
6dfac37f
Commit
6dfac37f
authored
Nov 24, 2021
by
赵凯
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
93352af4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
README.md
README.md
+12
-5
No files found.
README.md
View file @
6dfac37f

## 环境依赖: python, 三方包
## 解决什么问题

当我们在使用opms后台部署时,需要手动选择很多下拉选择,在分支加载时也需等待很长时间;
opms命令,主要解决自动识别项目,自动拉取环境分支中最新节点并进行,快速部署
## 命令配置和执行步骤:
### 环境依赖: python, 三方包
-
python环境安装
> https://www.runoob.com/python/python-install.html
...
...
@@ -13,7 +20,7 @@ pip3 install requests filecache pyyaml
## 配置脚本
##
#
配置脚本
-
终端执行命令: vim ~/.zshrc
...
...
@@ -29,10 +36,10 @@ alias opms-beta='opms beta'
-
刷新配置, source ~/.zshrc
## 配置文件
##
#
配置文件
仓库中,把 example.config.yaml 重新命名为 config.yaml; 然后打开config.yaml,把opms账号密码配置好即可
## 部署命令
##
#
部署命令
在需要部署的项目目录中,执行部署命令;部署时,会拉取当前环境分支最新提交节点,进行快速部署;无需页面停留等待
opms
[
环境别名:test|beta
]
[
部署描述
]
...
...
@@ -49,5 +56,5 @@ opms beta "B需求"
opms-beta "A需求"
```
## 部署效果
##
#
部署效果

\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment