sh WPEngine的Codeship Custom Deploy脚本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh WPEngine的Codeship Custom Deploy脚本相关的知识,希望对你有一定的参考价值。

# You must set up two environment variables:
# repoSlug = slug for WP Engine repository
# themeDir = path from the top of the repository, to the theme directory

git remote add production git@git.wpengine.com:production/${repoSlug}.git
git remote add staging git@git.wpengine.com:staging/${repoSlug}.git
cd ${themeDir}
npm install
npm install -g bower
bower install
gulp build
git config --global user.email "codeship-deploy-bot@example.com"
git config --global user.name "Codeship Deploy Bot"
git config push.default current
git checkout -b deploy
git add public
git commit -m "DEPLOYMENT - public folder build"
git push -f staging deploy

以上是关于sh WPEngine的Codeship Custom Deploy脚本的主要内容,如果未能解决你的问题,请参考以下文章

sh 用于elasticbeanstalk的Codeship部署脚本

sh Codeship Android构建脚本

sh Codeship - NodeJS +业力测试

sh Codeship - Symfony2与mysql - phpunit

sh 在特定端口上运行的Codeship上设置Neo4j

sh Neo4j - 在Codeship构建盒上下载并启动带有空间插件的Neo4j