Rework deploy scripts to correctly build and handle multiple environments.

This commit is contained in:
Jonathan Bernard
2019-09-26 23:23:32 -05:00
parent cfd5463b4d
commit bfcce67788
7 changed files with 21 additions and 6 deletions

8
set-env.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
if [[ -z $TARGET_ENV ]]; then
echo "TARGET_ENV variable is not set."
exit 1
fi
export $(grep -v '^#' .env.$TARGET_ENV | xargs )
"$@"