OpenSHIFT Web控制台允许使用现有的远程存储库中的分支/标签创建新的应用程序,而我不知道如何通过rhc create使用。
相关的命令行选项--from-code URL对于默认存储库路径非常有用,但是如何判断要使用哪个特定分支?我在OpenShift documentation或任何其他网络资源找不到任何东西。
我尝试了以下和其他一些变体,但没有成功:
rhc app create my_new_app_name python-3.3 postgresql-9.2 --from-code https://github.com/my_user/my_repository/tree/my_branch
rhc app create my_new_app_name python-3.3 postgresql-9.2 --from-code https://github.com/my_user/my_repository.git/my_branch
结果消息:
Source code repository could not be cloned: 'https://github.com/my_user/my_repository.git/my_branch'. Please verify the repository is correct and contact support.
我需要使用rhc create来创建新的应用程序,因为这允许使用多个墨盒(这里是python-3.3postgresql-9.2)创建应用程序,而这是无法通过web控制台实现的。

最佳答案

你很亲密。您可以通过执行以下操作从分支创建应用程序:
rhc app create my_new_app_name python-3.3 postgresql-9.2 --from-code https://github.com/my_user/my_repository#mybranch

07-28 02:46
查看更多