File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
140143function 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments