Skip to content

Commit 15592ae

Browse files
committed
Merge pull request #10 from PredixDev/develop
Added NEW_RELIC_APP_NAME to deploy scripts so predix seed newrelic na…
2 parents edfaad1 + 7ef71e4 commit 15592ae

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

cf-bluegreen-deploy.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ function push_app_to_cf(){
5454
status "Setting REDIS for common.lua to ${REDIS}"
5555
cf set-env $APP_ID REDIS $REDIS
5656

57+
status "Setting NEW_RELIC_APP_NAME to ${NEW_RELIC_APP_NAME}"
58+
cf set-env $APP_ID NEW_RELIC_APP_NAME $NEW_RELIC_APP_NAME
59+
5760
cf start $APP_ID
5861
if [ $? -ne 0 ]; then
5962
status "Could not start the application as expected, Please find below the logs"
@@ -138,7 +141,7 @@ function cleanup(){
138141
}
139142

140143
function get_args(){
141-
while getopts "f:s:b:d:i:t:" opt; do
144+
while getopts "f:s:b:d:i:t:n:" opt; do
142145
case $opt in
143146
h)
144147
show_help
@@ -162,6 +165,9 @@ function get_args(){
162165
t)
163166
UAA_URL=$OPTARG
164167
;;
168+
n)
169+
NEW_RELIC_APP_NAME=$OPTARG
170+
;;
165171
\?)
166172
echo "Invalid option -$OPTARG"
167173
show_help

manifest.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ applications:
88
services:
99
- your_redis_instance # change this to your redis service instance name
1010
- your_view_service_instance # change this to your view service instance name
11-
# env:
12-
# UAA_SERVER_URL: https://your-uaa-instance.grc-apps.svc.ice.ge.com
11+
env:
12+
UAA_SERVER_URL: https://your-uaa-instance.grc-apps.svc.ice.ge.com # change to your UAA instance url
13+
REDIS: redis

0 commit comments

Comments
 (0)