From ce49598cd4edc257f28abfb94d807304640bd71e Mon Sep 17 00:00:00 2001 From: Cole Krumbholz Date: Thu, 1 Jan 2015 22:15:10 -0500 Subject: [PATCH] adding scripts --- scripts/export.sh | 8 ++++++++ scripts/herokuconfig.sh | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100755 scripts/export.sh create mode 100755 scripts/herokuconfig.sh 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