Friday, 22 May 2015
OpenShift : WildFly 8 standalone.xml
I am using redhat openshift to test my applications lately , one annoying thing happened is this standalone.xml keep being overwritten, if you encountered the same read below :
Root Cause : below line in file /var/lib/openshift/${user}/wildfly/bin/standalone.conf
if [ -f $OPENSHIFT_WILDFLY_DIR/jboss_cfg_backup/standalone.xml ] && [ x$DISABLE_OPENSHIFT_MANAGED_SERVER_CONFIG != "xtrue" ]
then
cp $OPENSHIFT_WILDFLY_DIR/jboss_cfg_backup/standalone.xml ${OPENSHIFT_WILDFLY_DIR}/standalone/configuration/standalone.xml || :
fi
Solution : set DISABLE_OPENSHIFT_MANAGED_SERVER_CONFIG to "true"
rhc set-env DISABLE_OPENSHIFT_MANAGED_SERVER_CONFIG=true -a ${app_name}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment