generated from cloud-gov/.github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.profile
6 lines (6 loc) · 925 Bytes
/
.profile
1
2
3
4
5
6
export DATABASE_URI="$DATABASE_URL"?sslmode=require
export PAYLOAD_SECRET="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "payload-secret" ".[][] | select(.name == \$service_name) | .credentials.PAYLOAD_SECRET")"
export OAUTH_CLIENT_ID="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "payload-secret" ".[][] | select(.name == \$service_name) | .credentials.OAUTH_CLIENT_ID")"
export OAUTH_CLIENT_SECRET="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "payload-secret" ".[][] | select(.name == \$service_name) | .credentials.OAUTH_CLIENT_SECRET")"
export PREVIEW_URL="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "payload-secret" ".[][] | select(.name == \$service_name) | .credentials.PREVIEW_URL")"
export PROMPT_URL="$(echo "$VCAP_SERVICES" | jq --raw-output --arg service_name "payload-secret" ".[][] | select(.name == \$service_name) | .credentials.PROMPT_URL")"