leinue / ci Goto Github PK
View Code? Open in Web Editor NEWci
ci
# 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 * 享受开发,接下来的上线可以解放双手:)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.