Browse Source

deploy scripts with emojis

rails6
Jérémy Lecour 11 months ago
parent
commit
ead3b8b532
2 changed files with 9 additions and 0 deletions
  1. +1
    -0
      script/to_production
  2. +8
    -0
      script/to_staging

+ 1
- 0
script/to_production View File

@@ -34,6 +34,7 @@ if [ "${confirmed}" != "y" ]; then
exit 1
fi

echo "🚀 Deploying master to production !"
bundle exec cap production deploy

echo "😎 Done !"

+ 8
- 0
script/to_staging View File

@@ -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 !"

Loading…
Cancel
Save