2020-09-04 19:13:08 +08:00
|
|
|
|
<p align=center>
|
|
|
|
|
<img src="./banner.png" alt="logo" title="logo" />
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
|
<a href="#">
|
2023-07-31 10:05:19 +08:00
|
|
|
|
<img src="https://img.shields.io/badge/readme%20style-standard-brightgreen.svg" alt="readme">
|
2020-09-04 19:13:08 +08:00
|
|
|
|
</a>
|
|
|
|
|
<a href="#">
|
2023-07-31 10:05:19 +08:00
|
|
|
|
<img src="https://img.shields.io/badge/give%20me-a%20star-green.svg" alt="give me a star">
|
2020-09-04 19:13:08 +08:00
|
|
|
|
</a>
|
|
|
|
|
<a href="LICENSE">
|
2023-07-31 10:05:19 +08:00
|
|
|
|
<img src="https://img.shields.io/badge/License-GPLv3-yellow.svg" alt="License-GPLv3">
|
2020-09-04 19:13:08 +08:00
|
|
|
|
</a>
|
|
|
|
|
</p>
|
2020-09-04 19:15:30 +08:00
|
|
|
|
|
|
|
|
|
[English](./README.md)| 简体中文
|
2020-09-04 19:13:08 +08:00
|
|
|
|
|
|
|
|
|
名字来源:go + deploy
|
|
|
|
|
|
2023-05-19 15:21:59 +08:00
|
|
|
|
一个web发布代码工具!
|
2020-09-04 19:13:08 +08:00
|
|
|
|
|
|
|
|
|
支持各种代码发布、回滚,可以通过web来一键完成!
|
|
|
|
|
|
|
|
|
|
完整的安装指引,上手无难度!
|
|
|
|
|
|
|
|
|
|
> 重要提示: master 分支在开发过程中可能处于不稳定或者不可用状态,请通过releases而非master去获取稳定的二进制文件。
|
|
|
|
|
|
2021-02-15 10:31:10 +08:00
|
|
|
|
[DEMO](http://demo.goploy.icu) admin:admin!@# (不一定能打开,看心情)
|
2020-09-04 19:13:08 +08:00
|
|
|
|
|
2021-06-01 14:59:54 +08:00
|
|
|
|
[Docker](https://hub.docker.com/r/zhenorzz/goploy)
|
|
|
|
|
|
2021-11-23 10:16:18 +08:00
|
|
|
|
[Dockerfile](./docker/Dockerfile)
|
|
|
|
|
|
2021-03-04 14:57:39 +08:00
|
|
|
|
[帮助文档](https://docs.goploy.icu)
|
2020-09-04 19:13:08 +08:00
|
|
|
|
|
2023-07-31 10:05:19 +08:00
|
|
|
|
[OpenAPI](https://api-doc.goploy.icu)
|
|
|
|
|
|
2021-11-09 14:12:28 +08:00
|
|
|
|
[Goploy-Agent](https://github.com/zhenorzz/goploy-agent) 监控服务器性能
|
|
|
|
|
|
2023-07-25 09:33:39 +08:00
|
|
|
|
[Goploy-Vscode](https://github.com/goploy-devops/goploy-vscode) 在Vscode插件市场搜索Goploy
|
|
|
|
|
|
|
|
|
|
[Goploy-Jetbrains](https://github.com/goploy-devops/goploy-jetbrains) 在Jetbrains插件市场搜索Goploy
|
2023-07-18 12:42:04 +08:00
|
|
|
|
|
2020-09-04 19:13:08 +08:00
|
|
|
|
## 内容列表
|
|
|
|
|
|
2021-12-04 14:24:25 +08:00
|
|
|
|
- [功能](#功能)
|
2020-09-04 19:13:08 +08:00
|
|
|
|
- [安装](#安装)
|
|
|
|
|
- [使用](#使用)
|
|
|
|
|
- [预览](#预览)
|
|
|
|
|
- [原理图](#原理图)
|
|
|
|
|
- [后端开发说明](#后端开发说明)
|
|
|
|
|
- [前端开发说明](#前端开发说明)
|
|
|
|
|
- [如何贡献](#如何贡献)
|
|
|
|
|
- [使用许可](#使用许可)
|
|
|
|
|
|
2021-12-04 14:24:25 +08:00
|
|
|
|
## 功能
|
|
|
|
|
|
|
|
|
|
Use Goploy to automate your development workflow, so you can focus on work that matters most.
|
|
|
|
|
|
|
|
|
|
Goploy 用于:
|
|
|
|
|
|
|
|
|
|
- 构建项目
|
2022-05-12 19:38:53 +08:00
|
|
|
|
- 发布项目到unix、windows
|
2022-03-10 19:31:30 +08:00
|
|
|
|
- 支持git、svn、ftp、sftp
|
2022-04-12 09:48:31 +08:00
|
|
|
|
- 基于角色的访问控制RBAC
|
2022-04-29 15:56:34 +08:00
|
|
|
|
- 监控http、tcp、process
|
2021-12-04 14:24:25 +08:00
|
|
|
|
- 服务器性能
|
|
|
|
|
- 秒级定时任务
|
|
|
|
|
- Xterm
|
|
|
|
|
- Sftp
|
2021-12-15 16:17:31 +08:00
|
|
|
|
- LDAP
|
2020-09-04 19:13:08 +08:00
|
|
|
|
|
2023-04-27 17:15:48 +08:00
|
|
|
|
## 视频
|
|
|
|
|
|
|
|
|
|
[环境配置](https://www.zhihu.com/zvideo/1512006837884469248)
|
|
|
|
|
[应用配置](https://www.zhihu.com/zvideo/1513073009618952192)
|
|
|
|
|
|
2020-09-04 19:13:08 +08:00
|
|
|
|
## 安装
|
2023-04-26 11:27:00 +08:00
|
|
|
|
|
|
|
|
|
下载 [release](https://github.com/zhenorzz/goploy/releases)
|
|
|
|
|
|
|
|
|
|
或者从tag构建
|
|
|
|
|
```
|
|
|
|
|
git clone https://github.com/zhenorzz/goploy.git
|
|
|
|
|
cd ./goploy
|
|
|
|
|
git checkout -b tagname
|
|
|
|
|
cd ./web
|
|
|
|
|
npm install && npm run build
|
|
|
|
|
cd ../
|
2023-04-26 11:28:01 +08:00
|
|
|
|
go build -o goploy cmd/server/main.go
|
2023-04-26 11:27:00 +08:00
|
|
|
|
```
|
2020-09-04 19:13:08 +08:00
|
|
|
|
|
|
|
|
|
## 使用
|
|
|
|
|
1. 运行./goploy or goploy.exe or goploy.mac (运行不了可能需要 chmod a+x, 再不行就发issue或加群)
|
|
|
|
|
2. 根据安装指引填入相关的配置
|
|
|
|
|
3. web http://ip:port (账号:密码 admin:admin!@#)
|
|
|
|
|
|
|
|
|
|
## 预览
|
2023-04-28 10:05:47 +08:00
|
|
|
|
![预览](./preview.gif)
|
2020-09-04 19:13:08 +08:00
|
|
|
|
|
|
|
|
|
## 原理图
|
|
|
|
|
![原理图](./goploy.png)
|
|
|
|
|
|
|
|
|
|
## 后端开发说明
|
2021-04-07 18:31:31 +08:00
|
|
|
|
1. 安装go,必须是1.16以上
|
2022-09-17 17:43:49 +08:00
|
|
|
|
2. 项目使用 go mod 管理
|
|
|
|
|
3. 修改 goploy.toml `cp goploy.example.toml goploy.toml`
|
2023-04-26 11:27:00 +08:00
|
|
|
|
4. 需要编译一次前端 [前端开发说明](#前端开发说明)
|
2023-05-24 10:42:57 +08:00
|
|
|
|
5. 运行 `cd cmd/server && go run main.go --asset-dir=../../`
|
2023-04-26 11:27:00 +08:00
|
|
|
|
6. 或者使用 gin(可以热更新代码,改变就生效)
|
2020-09-04 19:13:08 +08:00
|
|
|
|
|
|
|
|
|
## 前端开发说明
|
2022-09-17 17:43:49 +08:00
|
|
|
|
1. `cd web`
|
|
|
|
|
2. `npm install` 或者 `yarn install`
|
|
|
|
|
3. 修改 .env.development
|
|
|
|
|
4. `npm run dev` 或者 `yarn dev`
|
2022-09-17 17:57:27 +08:00
|
|
|
|
5. 编译 `npm run build` 或者 `yarn build`
|
2020-09-04 19:13:08 +08:00
|
|
|
|
|
2023-05-04 10:51:50 +08:00
|
|
|
|
## 服务
|
2020-09-04 19:13:08 +08:00
|
|
|
|
|
2023-05-12 08:44:59 +08:00
|
|
|
|
| 价格(¥) | 加v:zhenorzz 备注【安装】 |
|
|
|
|
|
|-------|--------------------|
|
|
|
|
|
| 0 | 多看文档,多搜索,强烈推荐0元购 |
|
|
|
|
|
| 188 | 耐心指导 |
|
|
|
|
|
| 388 | 远程安装,服务器设置,项目设置 |
|
|
|
|
|
| 588 | 周期性跟进版本更新 |
|
2022-05-19 08:17:09 +08:00
|
|
|
|
|
2020-09-04 19:13:08 +08:00
|
|
|
|
## 如何贡献
|
|
|
|
|
|
2023-05-04 10:51:50 +08:00
|
|
|
|
非常欢迎你的加入!
|
2020-09-04 19:13:08 +08:00
|
|
|
|
|
|
|
|
|
[提一个Issue](https://github.com/zhenorzz/goploy/issues/new)
|
|
|
|
|
|
|
|
|
|
提交一个 Pull Request.
|
|
|
|
|
|
|
|
|
|
## 使用许可
|
|
|
|
|
|
2022-04-09 21:45:53 +08:00
|
|
|
|
[GPLv3](LICENSE) © zhenorzz
|