所以我在一个域中有一个应用,可以说它具有以下网址:
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将应用程序从一个域转移到另一个域?
发布评论