Openshift将应用程序从一个域转移到另一个域?

编程入门 行业动态 更新时间:2024-10-26 18:21:52
本文介绍了Openshift将应用程序从一个域转移到另一个域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

app-domain1.rhcloud

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

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

app-domain2.rhcloud

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

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将应用程序从一个域转移到另一个域?

本文发布于:2023-10-20 03:23:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1509696.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   转移到   Openshift

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!