Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

前端与后端部署发布脚本

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/)下,自动加载配置。