fix: fix cookies script to apply to heroku, not netlify

This commit is contained in:
NunoSempere 2022-03-28 22:24:15 -04:00
parent 0686325f67
commit 27652407fd

View File

@ -31,7 +31,8 @@ case $platform in
echo "Cookie found:" echo "Cookie found:"
echo "$cookie" echo "$cookie"
echo "Running: netlify env:set INFER_COOKIE '\$cookie'" echo "Running: netlify env:set INFER_COOKIE '\$cookie'"
netlify env:set INFER_COOKIE "$cookie" # netlify env:set INFER_COOKIE "$cookie"
heroku config:set INFER_COOKIE="$cookie" -a metaforecast-backend
;; ;;
"1" ) "1" )
echo "Platform: Good Judgment Open" echo "Platform: Good Judgment Open"
@ -55,7 +56,8 @@ case $platform in
echo "Cookie found:" echo "Cookie found:"
echo "$cookie" echo "$cookie"
echo "Running: netlify env:set GOODJUDGMENTOPENCOOKIE '\$cookie'" echo "Running: netlify env:set GOODJUDGMENTOPENCOOKIE '\$cookie'"
netlify env:set GOODJUDGMENTOPENCOOKIE "$cookie" # netlify env:set GOODJUDGMENTOPENCOOKIE "$cookie"
heroku config:set GOODJUDGMENTOPENCOOKIE="$cookie" -a metaforecast-backend
;; ;;
* ) * )
echo "Option not in {0,1}, exiting." echo "Option not in {0,1}, exiting."