Openshift平台PHP实例
1、 把应用clone到本地
$ git clone ssh://99b3a77fb9204c6687618bcb92c0548c@app-domain.rhcloud.com/~/git/app.git/
2、 把php文件夹下原来的东东删除,然后把PHP程序解压到 php 文件夹下
3、 创建mysql数据库
$ rhc-ctl-app -a
4、创建phpmyadmin,cron,mongodb,postgresql
$ rhc-ctl-app -a
$ rhc-ctl-app -a
$ rhc-ctl-app -a
$ rhc-ctl-app -a
5、上传APP代码
$ git add -A
$ git commit -m "add my site"
$ git push
6、 备份
$ rhc-snapshot -l
7、 绑定自己的域名:
$ rhc-ctl-app -a
