From 03bf53a8c2482ae8b594015e6fd015fa962de741 Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Sun, 5 Jul 2020 14:46:42 -0700 Subject: [PATCH] add deploy script --- .gitignore | 1 + bin/deploy.sh | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100755 bin/deploy.sh diff --git a/.gitignore b/.gitignore index c5f2b6d..64b3186 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ node_modules .env* .next +dist out cypress/videos cypress/screenshots diff --git a/bin/deploy.sh b/bin/deploy.sh new file mode 100755 index 0000000..ec65516 --- /dev/null +++ b/bin/deploy.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +set -e + +now switch carbon-app + +NOW_URL=$(now) + +yarn cy:run --config baseUrl="$NOW_URL" + +echo "$NOW_URL"| tee /dev/tty | pbcopy + +read -p "Deploy to production (y/N)?" -r +echo +if [[ $REPLY =~ ^[Yy]$ ]] +then + now alias "$NOW_URL" carbon.now.sh +fi \ No newline at end of file