Rework deploy scripts to correctly build and handle multiple environments.
This commit is contained in:
8
set-env.sh
Executable file
8
set-env.sh
Executable 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 )
|
||||
"$@"
|
||||
Reference in New Issue
Block a user