Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiaohaoo/server-deployment
前端与后端部署发布脚本
https://github.com/xiaohaoo/server-deployment
deployment gradle java javascript npm server shell web
Last synced: 1 day ago
JSON representation
前端与后端部署发布脚本
- Host: GitHub
- URL: https://github.com/xiaohaoo/server-deployment
- Owner: xiaohaoo
- License: agpl-3.0
- Created: 2022-02-10T13:40:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T17:33:36.000Z (about 1 year ago)
- Last Synced: 2023-10-10T23:30:16.079Z (about 1 year ago)
- Topics: deployment, gradle, java, javascript, npm, server, shell, web
- Language: Shell
- Homepage:
- Size: 83 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 常用的部署脚本
## 前端与后端部署发布脚本
使用方式
- Github
```shell
zsh -c "$(curl -skL https://raw.githubusercontent.com/xiaohaoo/server-deployment/main/server-gradle-deployment.sh)" -s {project_path} {server_host:server_directory} {server_port}
``````shell
zsh -c "$(curl -skL https://raw.githubusercontent.com/xiaohaoo/server-deployment/main/web-npm-deployment.sh)" -s {project_path} {server_host:server_directory}
```- Gitee
```shell
zsh -c "$(curl -skL https://gitee.com/xiaohaoo/server-deployment/raw/main/server-gradle-deployment.sh)" -s {project_path} {server_host:server_directory} {server_port}
``````shell
zsh -c "$(curl -skL https://gitee.com/xiaohaoo/server-deployment/raw/main/web-npm-deployment.sh)" -s {project_path} {server_host:server_directory}
```### 后端发布
后端使用Gradle构建Java项目,发布脚本:[脚本程序](server-gradle-deployment.sh)。
### 前端发布
前端使用Npm构建Web项目,发布脚本:[脚本程序](web-npm-deployment.sh)。
## Nginx相关配置
### HTTPS配置
需要将[脚本程序](nginx/https.conf)放入Nginx的配置目录(/etc/nginx/conf.d/)下,自动加载配置。
### 端口转发配置
需要将[脚本程序](nginx/location.conf)放入Nginx的配置目录(/etc/nginx/default.d/)下,自动加载配置。