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