From 3f9d519753defb5c609c182177e8e013a036f227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 30 Aug 2016 14:37:36 +0200 Subject: [PATCH] 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. --- deploy.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 00000000..e4783f76 --- /dev/null +++ b/deploy.sh @@ -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