Page 2 of 2

Posted: Tue Oct 23, 2007 10:51 am
by Luke
I'm using 0.3.1

Re: Deploying web applications and making updates

Posted: Tue Oct 23, 2007 3:15 pm
by The Phoenix
The Ninja Space Goat wrote:Basically I'm just looking for any advice you guys can give me on optimizing our deployment and update process. Thanks! :D
I think in terms of web-based apps, so thats the answer I will give. :)

The admin logs in, and in the admin control panel, they see that there is an update available. (Most likely checked from an external xml file if it is available).

They then click on the update button, which *attempts* to turn off the service to other users, and change the permissions. Once thats done, then it downloads a zip file containing the changed files from their version, and extracts them into the directory.

After that is complete, the application runs an sql update script. I happen to use adodb quite a bit, so the xml-schema makes this particularly nice for schema changes.

Finally, the application should then do a sanity check, and if it passes, put the permissions back into a secure state, and then enable user access once again.

Notably, this is remarkably close to the process that phpbb uses, and doesn't require any substantially nifty coding.. just some attention to detail.

Doing things this way allows you to upgrade the database, the php code, and so forth.

Posted: Tue Oct 23, 2007 7:20 pm
by Weirdan
Actually it works great in linux, but on Windows, the svn export craps out, unfortunately.
we use it and it works on our windows desktops. You may need to add 'svnpath' attribute to your svn task though.

Posted: Wed Oct 24, 2007 2:59 am
by Maugrim_The_Reaper
Working fine here also - :(. It could be svn path - generally it's already on PATH though. May not be in your case.

Posted: Wed Oct 24, 2007 11:33 am
by Luke
still doesn't work. I have subversion's bin directory in my path as well as in the task. When I run phing, it says that it exports the subversion repo, but it doesn't. :(

EDIT: It's really frustrating that it doesn't even bother to give me an error. Any way I can probe some information from it?

Posted: Wed Oct 24, 2007 1:28 pm
by Weirdan
It could be svn path - generally it's already on PATH though.
That doesn't matter from what I know. VersionControl_SVN tries to execute '/usr/local/bin/svn' by default - which path most probably simply does not exist on windows.

Posted: Thu Oct 25, 2007 2:54 am
by Maugrim_The_Reaper
Skip Phing altogether for this - try exporting using VersionControl_SVN directly and check for any stacked errors. I'll do a little digging at the weekend if possible - I'm doing the same for Phing's XSLT/XInclude filters which have a few small bugs in RC1.