This video demos the steps involved in moving a Java app from Heroku to OpenShift. Specifically, it shows how to migrate a Spring MVC app running on Tomcat with a PostgreSQL database, but the process would be similar for many other web servers and technologies. The two main things changed in the app source code were the pom.xml (adding an OpenShift profile) and the database config (adding OpenShift environment variables).

View the blog post for written steps: Migrate your Java Application from Heroku to OpenShift