88 | | Then create a new application on your OpenShift by uploading the package. |
| 88 | To be able to do this, first you need to install Sahana Eden in your laptop. If you are using Ubuntu, the easiest possibility is to install the [http://eden.sahanafoundation.org/wiki/InstallationGuidelines/Windows/User windows version] using virtual machine such as [https://www.virtualbox.org/ Oracle Virtual Box]. |
| 89 | |
| 90 | There is a file called 'Web2py.py' somewhere in your windows system. Find this using the windows explorer search facility. Probably it is located in C:\Users\Public\SahanaEden. Then double click to run this file. Wait until it shows a small window, choose server IP= Local (127.0.0.1), enter a Password and press the 'Start Server' button. Your Web browser will directly trying to connect to that ip address. Stop it, and Go to: http://127.0.0.1:8000/admin |
| 91 | |
| 92 | Your browser will show the web2py admin page. enter your password and press Login. |
| 93 | Now, on the left side, you will see many button, one of them, under Eden dir is called "Pack all". Press this button, and wait until its done (will take some time). The result is a file called "web2py.app.eden.w2p", this is the package that needs to be uploaded into Openshift. |
| 94 | |
| 95 | Use your browser, and go to: https://YOUR_APP_NAME-$yournamespace.rhcloud.com, enter the administrative interface, enter your password, and press Login. Now, you are at the Openshift Web2py admin page. On the right side, you can see: "Upload and install packed application" section, fill in the Application name, and choose your "web2py.app.eden.w2p" file, and then press Install. It will take some time to finish the uploading process, if it is interrupted, just repeat the process. |
| 96 | |
| 97 | When it is installed, you will see your Application name on the left side. Phew. |