diff --git a/scripts/export.sh b/scripts/export.sh new file mode 100755 index 0000000..9176767 --- /dev/null +++ b/scripts/export.sh @@ -0,0 +1,8 @@ +#! /bin/bash +# To set your local env vars, use this like so: +# scripts/export.sh .env | pbcopy +# then paste into terminal + +while read l; do + echo export ${l//\"/} +done < $1 diff --git a/scripts/herokuconfig.sh b/scripts/herokuconfig.sh new file mode 100755 index 0000000..66ee539 --- /dev/null +++ b/scripts/herokuconfig.sh @@ -0,0 +1,8 @@ +#! /bin/bash +# To set your local env vars, use this like so: +# scripts/export.sh .env | pbcopy +# then paste into terminal + +while read l; do + heroku config:set --app=$2 ${l//\"/} +done < $1