Skip to content

Commit

Permalink
add deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 committed Jul 5, 2020
1 parent 8262957 commit 03bf53a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules
.env*
.next
dist
out
cypress/videos
cypress/screenshots
Expand Down
17 changes: 17 additions & 0 deletions bin/deploy.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 03bf53a

Please sign in to comment.