Giter Site home page Giter Site logo

ci's Introduction

# memect CI 自动化配置脚本

# 文件说明

## config.sh

配置ssh配置文件,只需要执行一次

### 参数说明

config.sh [host] [hostname] [user] [port]

### 示例

``` shell

sh config.sh qianliyan 101.200.162.35 labs 12021

```

## prod_env.sh

初始化服务器环境,包括git bare目录、git目录、hook脚本,只需要执行一次

### 参数说明

prod_env.sh [project_folder]

### 示例

``` shell
sh prod_env.sh /opt/project/fuck
```

## test_env.sh

初始化测试机环境,添加了一个git remote源,name为``online``

### 参数说明

test_env.sh [project_folder] [host]

### 示例

``` shell
sh test_env.sh /var/www/fuck labs@qianliyan:/opt/project/fuck.bare
```

## 开发使用流程

* 在gitlab上新建git项目
* 本地开发机/测试机clone项目
* 确定上线时执行git push online HEAD:master命令即可

## 部署流程

* 执行config.sh,若已经执行过则不需要再执行
* 将ssh public key配置到对应服务器上
* 到目标服务器上执行prod_env.sh
* 在开发机或测试机上执行test_env.sh
* 享受开发,接下来的上线可以解放双手:)
 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.