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.
carbon/bin/deploy.sh

17 lines
264 B
Bash

#!/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