如何在OpenShift上配置webpy和MySQL

我想知道如何在openshift上部署
webpy to-do example.这是一个
official webpy example,展示了如何在openshift上部署webpy应用程序,但这个例子不涉及mysql.任何人都可以向我展示在openshift上部署webpy待办事项示例的演示吗?谢谢. 最佳答案 创建一个python应用程序:

rhc app create -a webpy -t python-2.7

添加此上游webpy仓库

cd webpy
git remote add upstream -m master https://github.com/openshift/webpy-example.git
git pull -s recursive -X theirs upstream master

然后将repo推向上游

git push

See here more

点赞