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.
9 lines
297 B
Bash
Executable File
9 lines
297 B
Bash
Executable File
#!/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
|