How to avoid overwriting of server.xml everytime after deployment in openshift tomcat

264 views Asked by At

I am making some changes to the server.xml and context.xml for automatic redirection of http requests to https. Folder- repo/.openshift/config/

Source - Openshift help (goto-FOR TOMCAT (JBOSS EWS))

But everytime after git-push, when build and deployment takes place, these two files are refreshed and my changes are overwritten. How can I avoid the overwriting?

1

There are 1 answers

1
Will Gordon On BEST ANSWER

Are you using a .openshift directory on the gear itself, or a local .openshift directory in the root of your git repository?

If you place the server.xml and context.xml files in your local git repository, under .openshift/config/, then do your git add/commit/push, these files should end up in the proper place on the gear!