It's ok to change standalone.xml in OpenShift, if you take care not to remove things like MysqlDS provided by OpenShift's infrastructure.

 

After checkout, the file is located in /.openshift/config/standalone.xml .

It's hidden both on Windows and Linux.

It's also ignored, so changes to it can't be added to git's stage.

To unignore this and only this file, change the relevant part in /.gitignore from

/.openshift/

to

/.openshift/*
!/.openshift/config/

/.openshift/config/*
!/.openshift/config/standalone.xml

After that, you can `git add`.

 

Upon pushing, the AS is restarted with the new file. Check if your app responds.

 

If you see HTTP 503 - Temporarily unavailable, SSH your app's shell (see the "NEED TO LOGIN TO YOUR APP?" at app's OpenShift page) and check:

tail -200f /jbossas-7/logs/boot.log

 

If you see HTTP 500, then something's wrong in your app;

If you see a blank page, something went south during the deployment phase.

In both cases, see

tail -200f /jbossas-7/logs/server.log