Deploying web applications and making updates
Moderator: General Moderators
- The Phoenix
- Forum Contributor
- Posts: 294
- Joined: Fri Oct 06, 2006 8:12 pm
Re: Deploying web applications and making updates
I think in terms of web-based apps, so thats the answer I will give.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!
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.
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland
- Maugrim_The_Reaper
- DevNet Master
- Posts: 2704
- Joined: Tue Nov 02, 2004 5:43 am
- Location: Ireland