add deploy script

This commit is contained in:
Mike Fix
2020-07-05 14:46:42 -07:00
parent 8262957679
commit 03bf53a8c2
2 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,7 @@
node_modules
.env*
.next
dist
out
cypress/videos
cypress/screenshots

17
bin/deploy.sh Executable file
View File

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