Hey Ashraf,

If you find a particular snapshot or release isn't working for you, you 
have a few options.

Since there are a few different scenarios I'll cover the most common ones 
only:

Scenario 1:
You've upgraded but nothing is working and you can't even get to your 
web2py instance in openshift. You want to hard-reset back to the last 
working commit you had.

cd <rhc-project-dir>
git log (review output and identify which was the last commit id you were 
working happily with)
git reset --hard <commit-id-here> (looks like a guid)

Scenario 2:
You've upgraded and the app is working but some functionality broke or is 
behaving differently. You didn't discover this until significant further 
development of your web2py application. Now you want to revert to the 
previous web2py version but want to make sure you don't lose your app 
changes. Note, this will erase history in your git log, if you don't want 
this, read-up on git revert and git rebase.

cd <rhc-project-dir>
git log (review output and identify which was the last commit id you were 
working happily with)
git stash
git reset --hard <commit-id-here>
git pop

Also, if you go to grab 2.3.2, it's set as a separate branch. So make sure 
you switch to that branch otherwise you'll get the latest web2py commit. 
Readup on git checkout -b  and make sure you use upstream (or whatever you 
called the remote template repo).

Disclaimer: I'm not a git expert, so you'll probably want to read up on 
this stuff and get more familiar with git SCM. 

Regards,
Andrew

On Tuesday, February 5, 2013 6:12:59 AM UTC-6, webpypy wrote:
>
>
> Hi Andrew,
>
> Now, I have an application hosted on openshift web2py 2.0.9.
> and it is working fine.
>
> If I upgrade to 2.3.2 (by clicking on upgrade now) and then some problems 
> happened, 
> How do i return back to 2.0.9 ?
>
> Regards,
>
> Ashraf
>

-- 

--- 
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