diff --git a/script/to_production b/script/to_production index 2fb3414..3352a7b 100755 --- a/script/to_production +++ b/script/to_production @@ -34,6 +34,7 @@ if [ "${confirmed}" != "y" ]; then exit 1 fi +echo "๐Ÿš€ Deploying master to production !" bundle exec cap production deploy echo "๐Ÿ˜Ž Done !" diff --git a/script/to_staging b/script/to_staging index d03a570..d76bd39 100755 --- a/script/to_staging +++ b/script/to_staging @@ -6,7 +6,15 @@ set -e [ -n "$DEBUG" ] && set -x +echo "๐Ÿ‘€ Fetching git repository informationโ€ฆ" +git fetch origin --quiet + +CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD` + +echo "๐Ÿš€ Deploying ${CURRENT_BRANCH} to staging !" git branch -f staging git push --force origin staging bundle exec cap staging deploy + +echo "๐Ÿ˜Ž Done !"