forked from HHS/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert change on docker-compose file
- Loading branch information
1 parent
0b8f794
commit adcd482
Showing
6 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,18 +54,21 @@ set_cf_envs() | |
"REDIS_URI" | ||
) | ||
|
||
|
||
|
||
echo "Setting environment variables for $CGAPPNAME_BACKEND" | ||
|
||
for var_name in ${var_list[@]}; do | ||
# Intentionally unsetting variable if empty | ||
if [[ -z "${!var_name}" ]]; then | ||
echo "WARNING: Empty value for $var_name. It will now be unset." | ||
cf_cmd="cf unset-env $CGAPPNAME_BACKEND $var_name ${!var_name}" | ||
$cf_cmd | ||
#cf_cmd="cf unset-env $CGAPPNAME_BACKEND $var_name ${!var_name}" | ||
|
||
#$cf_cmd | ||
continue | ||
fi | ||
|
||
cf_cmd="cf set-env $CGAPPNAME_BACKEND $var_name ${!var_name}" | ||
#cf_cmd="cf set-env $CGAPPNAME_BACKEND $var_name ${!var_name}" | ||
echo "Setting var : $var_name" | ||
$cf_cmd | ||
done | ||
|
@@ -86,7 +89,7 @@ update_backend() | |
cd tdrs-backend || exit | ||
if [ "$1" = "rolling" ] ; then | ||
set_cf_envs | ||
|
||
cf set-env "$CGAPPNAME_BACKEND" DJANGO_SU_NAME "[email protected]" | ||
# Do a zero downtime deploy. This requires enough memory for | ||
# two apps to exist in the org/space at one time. | ||
cf push "$CGAPPNAME_BACKEND" --no-route -f manifest.buildpack.yml -t 180 --strategy rolling || exit 1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters