Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy an existing app in Openshift

Tags:

openshift

I created an web app and i d like to deploy in on Openshift. What s the easiest way to do it? I m using the Openshift Eclipse client.

Shall I create a new openshift and then copy all the files from the my exisitng app or is there are an easier way to covnert my existing app to an openshift one?

thnx

like image 369
panipsilos Avatar asked Oct 18 '12 12:10

panipsilos


2 Answers

If your app is a Java EE web app, try this:

  • http://jaitechwriteups.blogspot.com.br/2011/08/deploy-java-ee-application-on-openshift.html
  • https://openshift.redhat.com/community/forums/express/how-can-i-deploy-a-war
like image 112
D.Souza Avatar answered Sep 28 '22 02:09

D.Souza


I think the best way to use OpenShift is through the rhc command line in combination with git. Once you're setup you can easily git push to OpenShift and control your application's deployment with action hooks. Check out an OpenShift example with a Python Django app: https://github.com/openshift/django-example and the action hooks you can find here: https://github.com/openshift/django-example/tree/master/.openshift/action_hooks

Depending on what kind of app you're setting up, the process may differ slightly. I suggest finding the OpenShift example for the type of application you're building (Java, Python, Ruby or w/e) on the OpenShift github https://github.com/openshift, get it going with their setup instructions and then move your code into the project. Using the rhc command line and the starter repos to setup the project provides you with basic action hooks and git flow quickly.

If you're set on using the Eclipse client then follow along with this guide for deployment: https://www.openshift.com/blogs/getting-started-with-eclipse-paas-integration

like image 27
iepathos Avatar answered Sep 28 '22 02:09

iepathos