On Feb 9, 2010, at 11:32 PM, mdipierro wrote: > I had not understood. This is not about upgrading web2py but about > upgrading an app. The fact is it is not safe to unpack an up if one > with the same name exists. How do you know it is the same? Right now > it simply does not allow that, it wants you uninstall first. I guess > we override this check but first we need ask the user "overwrite?"
That would work. It's a convenience, really. I've got a single-app installation with a remote deployment, and I'd like to upgrade it (during development, right now) without blowing away the app's related files (including an SQLite database). I can ssh in and do it manually, but I'd just be repeating the steps that app_install is already doing, so.... > > On Feb 9, 11:06 pm, Jonathan Lundell <jlund...@pobox.com> wrote: >> On Feb 9, 2010, at 8:16 PM, mdipierro wrote: >> >>> I have never seen this. Let me know if you find out what the problem >>> is. >> >> OK; tomorrow. This is on Linux. Looking at app_install, I see this: >> >>> upfile = open(upname, 'wb') >>> upfile.write(fobj.read()) >>> upfile.close() >>> path = apath(app, request) >>> os.mkdir(path) >>> did_mkdir = True >>> w2p_unpack(upname, path) >>> if extension != 'tar': >>> os.unlink(upname) >>> fix_newlines(path) >>> return upname >>> except Exception: >>> if did_mkdir: >>> rmtree(path) >>> return False >> >> But os.mkdir() will fail if the directory exists. >> >> >> >>> On Feb 9, 6:58 pm, Jonathan Lundell <jlund...@pobox.com> wrote: >>>> On Feb 9, 2010, at 4:07 PM, Richard wrote: >> >>>>> I often do this and my only problem is when updating modules, which >>>>> requires me to restart the server so web2py uses the new versions. >> >>>> Hmm. I uninstalled the app, and then installed it from scratch (not >>>> compiled). Worked fine. >> >>>> I then installed it a second time, to simulate an upgrade, and got a >>>> flash: unable to install application >> >>>>> On Feb 10, 10:00 am, Jonathan Lundell <jlund...@pobox.com> wrote: >>>>>> Should I be able to upgrade a deployed app by installing the new version >>>>>> over the old one? If not, how? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.