Openshift将应用程序从一个域转移到另一个域? [英] Openshift transfer app from one domain to another?

查看:111
本文介绍了Openshift将应用程序从一个域转移到另一个域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我在一个域中有一个应用,可以说它具有以下网址:

So I've got an app in one domain lets say it has the following url:

http://app-domain1.rhcloud.com

并且我想将其移至其他域,以便该网址为

and I want to move it to my other domain so the url would be

http://app-domain2.rhcloud.com

有没有一种方法可以转移应用程序域,而又无需删除旧应用程序并将其重新上传到新域中?

is there a way of transferring the app domain with out pulling it down deleting the old app and re-uploading it to the new domain ?

在我开始之前,这两个域都存在,我拥有源域并且被共享,但不是目标域的所有者.

Both domains exist before I've started, I own the source domain and I'm shared but not the owner of the target domain.

推荐答案

根据您的编辑进行假设您只想迁移代码而不是盒带,最简单的解决方案是简单地将目标域添加为新的远程站点到您的git配置.

Edit based on your edit: Assuming you only want to migrate the code and not cartridges, the easiest solution would be to simply add the target domain as a new remote to your git config.

为目标应用/域添加新的git remote:

Adding a new git remote for your target app/domain:

$ git remote add domain2 ssh://target-giturl
$ git push domain2 master

此外,如果您想重命名域:

$ rhc domain rename Old_Domain_Name New_Domain_Name

这篇关于Openshift将应用程序从一个域转移到另一个域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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