Skip to content

Instantly share code, notes, and snippets.

@trvswgnr
Last active October 2, 2020 03:25
Show Gist options
  • Save trvswgnr/1126b38f497ace6c974fc07a9baabdf3 to your computer and use it in GitHub Desktop.
Save trvswgnr/1126b38f497ace6c974fc07a9baabdf3 to your computer and use it in GitHub Desktop.
codeship build to wpengine
rm -rf .git/
git init
rm .gitignore
mv .gitignore-deploy .gitignore
cd wp-content/themes/moonfab/
npm install
npm run dev
git config --global user.name "CodeShip deployment"
git config --global user.email "[email protected]"
git remote add dev [email protected]:production/moonfabdev.git
git add -A
git commit -m "Codeship deploy"
git push dev HEAD:refs/heads/master --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment