File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 57
57
58
58
# Perform a rolling update if a release in the given namespace ever exist, create one otherwise.
59
59
echo " Installing/upgrading release '${RELEASE} ' on namespace '${NAMESPACE} '"
60
- helm upgrade --install --reset-values --force --namespace=$NAMESPACE $RELEASE ./api/helm/api \
60
+ helm upgrade --install --reset-values --force --namespace=$NAMESPACE --recreate-pods $RELEASE ./api/helm/api \
61
61
--set php.corsAllowOrigin=$CORS_ALLOW_ORIGIN \
62
62
--set php.trustedHosts=$TRUSTED_HOSTS \
63
63
--set php.repository=$PHP_REPOSITORY ,php.tag=$TAG \
@@ -83,6 +83,7 @@ helm upgrade --install --reset-values --force --namespace=$NAMESPACE $RELEASE ./
83
83
echo " Waiting for the PHP container to be up and ready..."
84
84
kubectl rollout status -n " $NAMESPACE " -w " deployment/${RELEASE} -api-php"
85
85
kubectl rollout status -n " $NAMESPACE " -w " statefulset/${RELEASE} -postgresql"
86
+ sleep 60
86
87
kubectl exec --namespace=$NAMESPACE -it $( kubectl --namespace=$NAMESPACE get pods -l app.kubernetes.io/name=api-php -o jsonpath=" {.items[0].metadata.name}" ) \
87
88
-- sh -c ' APP_ENV=dev composer install -n && bin/console d:s:u --force -e prod && bin/console h:f:l -n -e dev && APP_ENV=prod composer --no-dev install --classmap-authoritative && exit 0'
88
89
echo -e " \033[0;33m\e[1mAPI successfully deployed to https://${API_ENTRYPOINT} \e[8m\033[0m"
You can’t perform that action at this time.
0 commit comments