On my production boxes, every upgrade of any kind starts like so: mkdir rollback/<today's date> In the admin app, clean the application
sudo apache2ctl stop tar -cvzf rollback/<today's date>/current_version.tar.gz /home/www-data/web2py/ sudo apache2ctl start On Wednesday, October 16, 2013 5:10:58 PM UTC-4, Dave S wrote: > > > > On Wednesday, October 16, 2013 8:59:18 AM UTC-7, 黄祥 wrote: >> >> imho, you should use version control (git, subversion, mercurial, etc) to >> take control for your code . and for change a running system, imho, u >> should upgrade to the latest version (for bug fixing purpose, security >> hole, etc), but test it carefully first before you upgrade your system (in >> testing environment). for tutorial, what kind of version control do you >> want to use? every version control have it's own way. e.g. git versioning >> way is different with subversion or mercurial, please refer to the manual >> on their website and documentation. >> > > Note that web2py comes with mercurial ("hg") pre-installed and accessible > from the admin app. Mercurial is pretty simple to use, and web2py wraps > that for you so you don't have to much more than provide a description of > your changeset and press a button. It's already installed in the current > versions (my experience only goes back to 2.5.1). > > Mercurial is also a very capable VCS, so you can be sophisticated in your > use of it. I am somewhat in-between ... what you might call an "everyday > power user", using simple branching and tagging, and not yet into rebasing. > > I'd recommend that you have a backup repository (which is simple to do) on > another machine. But just doing an xcopy/rsynch of your web2py directory > will provide one copy, and you already do backup your web2py directory > > /dps > > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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.