Changes between Version 20 and Version 21 of InstallationGuidelines/OpenShift


Ignore:
Timestamp:
07/17/14 04:32:58 (11 years ago)
Author:
andre
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/OpenShift

    v20 v21  
    8484=== Package and deploy Eden ===
    8585
    86 Now locally create package your local Eden setup via the administrative interface.
     86Now locally create package your local Eden setup via the administrative interface. Then create a new application on your OpenShift by uploading the package.
    8787
    88 Then create a new application on your OpenShift by uploading the package.
     88To 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
     90There 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
     92Your browser will show the web2py admin page. enter your password and press Login.
     93Now, 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
     95Use 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
     97When it is installed, you will see your Application name on the left side. Phew.
    8998
    9099Once Eden is installed you will need OpenShift to install a lot of the required packages and libraries for it to work.For that edit the setup.py file in the following way-
     
    97106
    98107Note that these are only some of the libraries - please add them as needed.
     108You can find the setup.py file in your own laptop. if you use Ubuntu, you can find it in /home/YOUR_APP_NAME.
     109After you change the file content, do:
     110{{{
     111$git add .
     112$git commit   # make sure you see file 'setup.py' is included in the list.
     113$git push
     114}}}
    99115
    100 Commit these changes and push them to OpenShift.
     116If you are lucky, you can access Sahan Eden from Openshifht now. If not, pray for help might help you.
     117You can find your openshift Sahana eden web address from Web2py administrative page, folder 'your application name' (the one that you uploaded), move your mouse cursor above it, and you can see the web address.
    101118
    102119=== Updates ===