-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update cloudgov.py #2730
Update cloudgov.py #2730
Changes from 8 commits
cf2ff6e
d9d202f
8ec2432
f897a4f
ecee495
fe8a2e4
088ab6b
0eef1ca
437f893
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,8 @@ set_cf_envs() | |
"FRONTEND_BASE_URL" | ||
"LOGGING_LEVEL" | ||
"REDIS_URI" | ||
"JWT_KEY" | ||
"STAGING_JWT_KEY" | ||
) | ||
|
||
echo "Setting environment variables for $CGAPPNAME_BACKEND" | ||
|
@@ -62,6 +64,8 @@ set_cf_envs() | |
cf_cmd="cf unset-env $CGAPPNAME_BACKEND $var_name ${!var_name}" | ||
$cf_cmd | ||
continue | ||
elif [[ ("$var_name" =~ "STAGING_*") && ("$CF_SPACE" = "tanf-staging") ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Initially thought the same thing but saw the single |
||
var_name=$(echo "$var_name" | sed -e 's@STAGING_@@g') | ||
fi | ||
|
||
cf_cmd="cf set-env $CGAPPNAME_BACKEND $var_name ${!var_name}" | ||
|
@@ -128,7 +132,7 @@ update_backend() | |
bind_backend_to_services() { | ||
echo "Binding services to app: $CGAPPNAME_BACKEND" | ||
|
||
if [ "$CFAPPNAME_BACKEND" = "tdp-backend-develop" ]; then | ||
if [ "$CGAPPNAME_BACKEND" = "tdp-backend-develop" ]; then | ||
andrew-jameson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# TODO: this is technical debt, we should either make staging mimic tanf-dev | ||
# or make unique services for all apps but we have a services limit | ||
# Introducing technical debt for release 3.0.0 specifically. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove before merge