diff options
| -rw-r--r-- | .env | 3 | ||||
| -rw-r--r-- | env.sh | 3 | ||||
| -rwxr-xr-x | make-inject-env.sh | 7 |
3 files changed, 6 insertions, 7 deletions
@@ -0,0 +1,3 @@ +PER_PAGE=5 +COLLECTOR_URL=https://localhost:1443 +JWT_URL=http://localhost:8000/api/v1.0/auth @@ -1,3 +0,0 @@ -export PER_PAGE=5 -export COLLECTOR_URL=https://localhost:1443 -export JWT_URL=http://localhost:8000/api/v1.0/auth diff --git a/make-inject-env.sh b/make-inject-env.sh index 405ca1c..d28a584 100755 --- a/make-inject-env.sh +++ b/make-inject-env.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash -source env.sh -INJECT_FILE_SRC="inject_template.js" -INJECT_FILE_DST="dist/inject.js" mkdir -p dist -envsubst < "${INJECT_FILE_SRC}" > "${INJECT_FILE_DST}" +INJECT_FILE_SRC=inject_template.js +INJECT_FILE_DST=dist/inject.js +env $(cat .env | xargs) envsubst < $INJECT_FILE_SRC > $INJECT_FILE_DST |
