How do you lock your gallery during upgrades? The ideal solution would be to allow only your IP for the time being and redirect the other users to another page. So something like this in the .htaccess file should work:
Order Deny, Allow
Deny from all
Allow from <ip of my computer>
ErrorDocument 403 /work-in-progress.html
Where work-in-progress.html is big enough for IE not to show the default "Access Denied" page. Is there a better/more elegant solution. E.g. if the users receive a 302 code to the work-in-progress page it could be more RFC compliant.
What do you do when you upgrade a big software like gallery?
Posts: 16504
Here's my update process for G1:
1) Download G1 and decompress it to a separate directory than where G1 is currently installed.
2) I copy over the existing .htaccess info with this:
3) Copy an my update.index.php file into my G1 directory, it looks like this
4) chmod 777 .htaccess and config.php in my G1 directory
5) ensure .htaccess and config.php do not exist in the directory where I put the updates
6) move the updated files into my G1 directory
7) perform the update and chmod 644 .htaccess and config.php and run secure.sh when complete. My .htaccess file has now been overwritten so users can immediately start using it.
My process is much simpler for G2 as it's faster and easier. I don't worry about the "updating" splash page.
I just download the update (usually through CVS) straight over my existing files. chmod 777 .htaccess and config.php. Spend the 10 seconds going through the upgrader and backing up my DB and I'm done. Oh and chmod 644 .htaccess and config.php.