【问题标题】:Openshift cartridge deploying to wrong/old appOpenshift 墨盒部署到错误/旧应用程序
【发布时间】:2015-08-26 17:17:18
【问题描述】:

在 openshift 上意外损坏了我的烧瓶应用程序后,我将其删除并尝试重建它。我相信我已经通过创建一个新的 python 应用程序正确安装了它,然后执行:

$ git remote set-url origin ssh://55ddee2489f5.......@myapp-mydomain.rhcloud.com/~/git/myapp.git/
$ git push -f origin master

然后

remote: Activation status: success
remote: Deployment completed with status: success
To ssh://55ddee248........c@myflaskapp-mydomain.rhcloud.com/~/git/myflaskapp.git/
 + 068620c...00df6fb master -> master (forced update)

接下来我要添加一个 redis 墨盒。

$ rhc add-cartridge http://cartreflect-claytondev.rhcloud.com/reflect\?github\=smarterclayton/openshift-redis-cart
The cartridge 'http://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-redis-cart' will be downloaded and installed
Adding http://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-redis-cart to application 'myflaskapp' ... Application '5585ab144.......'
not found.

如您所见,墨盒被部署到旧位置“5585ab144.......”,而不是 ssh://55ddee248........c@myflaskapp-mydomain.rhcloud.com /~/git/myflaskapp.git/

我该如何解决这个问题?

【问题讨论】:

    标签: python git flask redis openshift


    【解决方案1】:

    如果您使用与旧应用程序相同的 DNS (application) 名称 (app-domain.rhcloud.com),则需要等待 DNS 更新并指向新应用程序。最多可能需要 24 小时,但通常只需几个小时。

    【讨论】:

    • 是的,我确实使用了相同的 myapp-mydomain 组合。我稍后再检查。谢谢。
    • 我做的时候终于工作了:$ rhc add-cartridge cartreflect-claytondev.rhcloud.com/reflect\?github\=smarterclayton/openshift-redis-cart --app myapp
    猜你喜欢
    • 1970-01-01
    • 2015-12-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多