File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -141,13 +141,27 @@ update_backend()
141141 exit
142142 fi
143143
144+ args=(" $APP " )
145+ args+=(" --no-route" )
146+ args+=(" -f" )
147+ args+=(" $MANIFEST " )
148+ args+=(" -t" )
149+ args+=(" 180" )
150+
151+ if [[ " $APP " = " $CGAPPNAME_CELERY " && " $CF_SPACE " = " tanf-prod" ]]; then
152+ args+=(" -m" )
153+ args+=(" 2G" )
154+ fi
155+
144156 if [ " $STRATEGY " = " rolling" ] ; then
145157 set_cf_envs " $APP "
146158 # Do a zero downtime deploy. This requires enough memory for
147159 # two apps to exist in the org/space at one time.
148- cf push " $APP " --no-route -f " $MANIFEST " -t 180 --strategy rolling || exit 1
160+ args+=(" --strategy" )
161+ args+=(" rolling" )
162+ cf push " ${args[@]} " || exit 1
149163 else
150- cf push " $APP " --no-route -f " $MANIFEST " -t 180
164+ cf push " ${args[@]} "
151165
152166 # set up JWT key if needed
153167 if cf e " $APP " | grep -q JWT_KEY ; then
@@ -274,7 +288,7 @@ if [[ $DEPLOY_STRATEGY == 'rebuild' ]]; then
274288 cf delete " $CGAPPNAME_BACKEND " -r -f
275289 cf delete " $CGAPPNAME_CELERY " -r -f
276290fi
277-
291+
278292add_service_bindings
279293
280294if [[ $DEPLOY_STRATEGY == ' rebuild' ]]; then
You can’t perform that action at this time.
0 commit comments