Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save atazmin/8a1d4d2e604bffb0521b9c94f5f984a3 to your computer and use it in GitHub Desktop.
Save atazmin/8a1d4d2e604bffb0521b9c94f5f984a3 to your computer and use it in GitHub Desktop.

YouTube


.Setup Commands

git config --global user.name "Bitbucket to CodeShip to WP Engine deploy"
git config --global user.email "name@example.com"
mkdir /home/rof/clone/wp-content
cp -rp /home/rof/clone/web/* /home/rof/clone/wp-content/
rm -rf web
cd /home/rof/clone/wp-content
git init
git remote add staging git@git.wpengine.com:production/NAME-THE-ENVIRONMENT.git
git add --all
git commit --allow-empty -m "WPEngine deploy"
git show-ref
echo "Pushing to WP Engine..."
git push -f staging HEAD:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment