Clarifies new db vs old db

This commit is contained in:
zomars 2022-08-11 18:43:59 -06:00
parent f28a1312a6
commit 50a20e2c3b

View File

@ -39,10 +39,10 @@ set -e
snaplet db create --git --latest
# Save the new snaplet instant db url
DATABASE_URL=$(snaplet db url --git)
NEW_DATABASE_URL=$(snaplet db url --git)
if [ "$DATABASE_URL" == "" ]; then
echo "Error: DATABASE_URL is empty"
if [ "$NEW_DATABASE_URL" == "" ]; then
echo "Error: NEW_DATABASE_URL is empty"
exit 0
fi
@ -64,7 +64,7 @@ curl -f -sS -o /dev/null -X POST "$VERCEL_PROJECT_ENDPOINT" \
"gitBranch": "'$VERCEL_GIT_COMMIT_REF'",
"type": "encrypted",
"key": "DATABASE_URL",
"value": "'$DATABASE_URL'"
"value": "'$NEW_DATABASE_URL'"
}'
res=$?
if test "$res" != "0"; then