mirror of
https://github.com/carbon-app/carbon.git
synced 2021-06-01 18:32:55 +03:00
add deploy script
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
node_modules
|
||||
.env*
|
||||
.next
|
||||
dist
|
||||
out
|
||||
cypress/videos
|
||||
cypress/screenshots
|
||||
|
||||
17
bin/deploy.sh
Executable file
17
bin/deploy.sh
Executable 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
|
||||
Reference in New Issue
Block a user