add deploy script

main
Mike Fix 4 years ago
parent 8262957679
commit 03bf53a8c2
No known key found for this signature in database
GPG Key ID: 1D85E862314CA79F

1
.gitignore vendored

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

@ -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
Loading…
Cancel
Save