在Openshift中部署现有应用 [英] Deploy an existing app in Openshift

查看:75
本文介绍了在Openshift中部署现有应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Web应用,我想在Openshift上进行部署. 最简单的方法是什么?我正在使用Openshift Eclipse客户端.

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.

我应该创建一个新的openshift文件,然后从exisitng应用程序中复制所有文件,还是有一种更简便的方法将现有的应用程序转换为openshift文件?

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

推荐答案

我认为使用OpenShift的最佳方法是通过rhc命令行结合git.设置完成后,您可以轻松地将git push推送到OpenShift并通过操作挂钩控制应用程序的部署.查看使用Python Django应用程序的OpenShift示例: https://github.com/openshift/django-example 并且您可以在此处找到操作挂钩: https://github.com /openshift/django-example/tree/master/.openshift/action_hooks

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

根据您要设置的应用类型,此过程可能会略有不同.我建议在OpenShift github上找到您要构建的应用程序类型(Java,Python,Ruby或w/e)的OpenShift示例. > https://github.com/openshift ,按照其设置说明进行操作,然后将代码移入项目.使用rhc命令行和Starter Repos设置项目可为您提供基本的动作挂钩和git flow.

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.

如果您准备使用Eclipse客户端,请遵循此部署指南:

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

这篇关于在Openshift中部署现有应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆