Added Dummy deploy script for people with a 'git pp' alias

For people with a 'git pp' alias to push to production. This are the
aliases I use to push & deploy changes to production:

    prod = "!git checkout production && git fetch origin production && gitk --all"
    ff = "merge --ff-only"
    pp = "!git push && if [ -e deploy.sh ]; then ./deploy.sh; fi && git checkout master"

Those are handy to make branch switches easy, and to ensure that you don't
accidentally continue work on the production branch after deploying.
This commit is contained in:
Sybren A. Stüvel 2016-08-30 14:37:36 +02:00
parent 3039aef7d3
commit 3f9d519753

8
deploy.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
echo
echo "==========================================================================="
echo "Dummy deploy script for people with a 'git pp' alias to push to production."
echo "Run deploy script on your server project."
echo "When done, press [ENTER] to stop this script."
read dummy