| 19 | . |
| 20 | Now we create a blank web2py app and get it running on OpenShift. For this we use the following [https://github.com/prelegalwonder/openshift_web2py repo]. |
| 21 | |
| 22 | You can follow the instructions given in the readme except change the Python version to 2.7 instead of 2.6 |
| 23 | |
| 24 | The basic steps are- |
| 25 | |
| 26 | Create a python-2.6 application |
| 27 | |
| 28 | {{{ |
| 29 | |
| 30 | rhc app create -a YOUR_APP_NAME -t python-2.6 |
| 31 | }}} |
| 32 | |
| 33 | Add this upstream repo |
| 34 | |
| 35 | {{{ |
| 36 | cd web2py |
| 37 | git remote add upstream -m master git://github.com/prelegalwonder/openshift_web2py.git |
| 38 | git pull -s recursive -X theirs upstream master |
| 39 | Note: If you want a specific release and not the latest snapshot, replace "master" with the branch name in the above lines (ie. 2.3.2). |
| 40 | }}} |
| 41 | |
| 42 | Then push the repo upstream |
| 43 | {{{ |
| 44 | git push |
| 45 | }}} |
| 46 | |
| 47 | That's it, you can now checkout your application at: |
| 48 | |
| 49 | http://YOUR_APP_NAME-$yournamespace.rhcloud.com # you'll be prompted for your namespace while creating your account, you needn't worry about it. |
| 50 | |
| 51 | }}} |