Deploy locally: use a JBoss 7 server locally installed.
Deploy to OpenShift: use a OpenShift Server.
The click path is the same for both on how to deploy/publish and you can take the same app and deploy locally as well as to openshift as long as they are Eclipse WTP projects buildable with Maven.