python - Openshift 墨盒部署到错误/旧应用程序

标签 python git flask redis openshift

在 openshift 上不小心损坏了我的 flask 应用程序后,我删除了它并试图重建它。我相信我已经通过创建一个新的 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 cartridge。

$ 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/

我该如何解决这个问题?

最佳答案

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

关于python - Openshift 墨盒部署到错误/旧应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32232805/

相关文章:

python - 扩展名为 ".py"的 google.com 网页?

python - 什么是 python 中的 * arguments (without suffix) 函数/方法?

linux - Git 不断删除组写权限

git - 在不重新下载所有内容的情况下更新 git-svn git 镜像

python - Jinja/Flask中的字符串长度

python:杀死 child 或报告他们成功的简单方法?

python selenium鼠标滚轮点击

git - 远程拒绝推送,提交必须有有效签名

python - 如何限制单个IP地址访问Flask?

python - Flask SqlAlchemy 有没有办法将表格大小限制为 n 行