Hi Chetan :)

So there's two steps in the github project readme.md that I want to clarify 
whether you ran or not:

git remote add upstream -m master 
git://github.com/prelegalwonder/openshift_web2py.git
git pull -s recursive -X theirs upstream master

Doing that instead of just checking out the project separately will make 
sure you get things like the setup.py, wsgi/application (wsgi handler) and 
.openshift directory with the action_hooks that handle things like pre and 
post deploy as well as deploy setup when git push is called. 

Simply checking out the github project and copying over the web2py 
directory into your newly created projects wsgi/ folder isn't enough as 
that's just the runtime files for web2py and none of the config that tells 
OpenShift to use it. 

So if you don't want to use the above two git statements, you also need to 
copy the following for starters:
   1.) application  from github project to <your-project>/wsgi/
   2.) .openshift   from github project to <your-project>/
   3.) setup.py    from github project to <your-project>/
   4.) libs/gluon   from github project to <your-project>/libs   (also make 
sure gluon is symlinked from <your-project>/wsgi/web2py/gluon -> 
<your-project>/libs/gluon

Try that and redo your git add . from the project root, commit and push and 
let me know how it goes. 

The fastest way is to just follow the README.MD verbatim.

Cheers,
Andrew


On Thursday, January 31, 2013 10:57:30 PM UTC-6, Chetan Patil wrote:
>
> Hello,
>
> On Friday, June 8, 2012 8:37:39 PM UTC+5:30, Andrew wrote:
>>
>> You can find it here: - 
>> https://github.com/prelegalwonder/openshift_web2py
>>
>
> I followed this guide. 
>
> This is what I have : I've created an application which stays in 
> application folder of web2py source.
>
> I did following to push the app on open shift :
>
> 1) Created OpenShift account. Setting up environment on my ubuntu machine.
> 2) Using rhc app create -a web2py -t python-2.6 I created the web2py 
> folder/application on my system and open shift account.
> 3) Then I've copied all the content which includes the web2py source and 
> above application inside folder created in step 2.
> 4) The I did  : (a) git add . (b) git commit -a -m "message" (c)  git push
> 5) Everything works fine and the application/web2py is deployed.
>
> However when I go to the app URL. It still showing : Welcome To OpenShift 
> page.
>
> I did appended following to the app URL : appURL/welcome/default/index
> still web2py isn't up.
>
> May anyone please let me know where am I going wrong ?
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to