mirror of https://github.com/sgoudham/carbon.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
264 B
Bash
17 lines
264 B
Bash
5 years ago
|
#!/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
|