I tried using env variables in my application.yml configration like:
spring: main: show_banner: false --- spring: profiles: production server: addres
Try ${OPENSHIFT_DIY_PORT} (the usual Spring placeholder notation). See here for docs.
${OPENSHIFT_DIY_PORT}