Openshift: After changing code and Git, click. Changes don't show

I created a new application in OpenShift

. The app was successfully created and cloned to the local directory. I have changed and changed the default index.html

. Also add web.xml

to put index.html

in welcome-file-list

. But it doesn't show any changes at all. when i run the url it will show the default index.html. even adding url index.html

it still shows default page

I uninstalled the app several times and created a new one with a new local repo to check what was wrong.

Every time I do SSH in the application, the current folder sometimes shows changes, updated sometimes but not.

I used the main process to create the app as mentioned in the tutorials:

  • rhc app-create <appname> tomcat7

After creating the application I changed the index.html and git add --all

, git commit -m

,git push

The result was successful as shown below:

remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success

      

I spent almost half a day searching the web for the same problem. This was not the case before. I already had the application deployed and I would update the application and they would reflect smoothly.

Please help me to solve it.thank you

+3


source to share


1 answer


Well I found a solution.

As soon as we create the application in rhcloud, it will create a pom.xml file with many defaults. so the bottom line is:



Do not replace with the pom.xml

one you saved offline for your project . Modify pom.xml already generated in rhcloud webapp and if you want to modify compiler version and dependencies, do so in xml file that is generated by default. Dont replace it completely.

This worked for me. Hope works for anyone who has had this problem.

+2


source







All Articles