Closed Thread Icon

Topic awaiting preservation: Site Migration: Best Practices? Pages that link to <a href="https://ozoneasylum.com/backlink?for=25872" title="Pages that link to Topic awaiting preservation: Site Migration: Best Practices?" rel="nofollow" >Topic awaiting preservation: Site Migration: Best Practices?\

 
Author Thread
DaveFA
Nervous Wreck (II) Inmate

From: USA
Insane since: Feb 2004

posted posted 05-26-2005 22:45

I've developed a new website for a client in a subdirectory off of root called /_dev/. _dev/ has a matching directory structure to the rest of the current website, and is now, essentially, completed. I've tested the HTML and CSS for validity, and made sure that the site is WAI & 508 valid (client is a Federal agency).

So, now that all the testing and development is done, I'm wondering what the best technique would be for pushing the new pages/images/css into the current site.

My first thought was to just over-write everything in one big FTP, but the fact is that people visiting the site would, for the next 10-30 minutes, catch dead pages/missing images/missing css/missing scripts, etc.

My second thought was to shutdown the site for a few hours (overnight at the lowest-peak hour) and remove all of the current files, then drop the new stuff in fresh.

Any other ideas/opinions? For reference, it's a unix-based server, and I've got SSH access. The site uses php for two small applications and for a number of common SSI's (php includes).

Thanks!

-----------------------------------
-Dave

Maker of stuff, user of things
-----------------------------------

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 05-26-2005 23:06

You could redirect from the main URL to /_dev while you overwrite (first thought); then just kill the redirection and /_dev afterwards.

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 05-26-2005 23:42

I'd just create a new htdocs (htdocsNew) directory in the same dir as your current htdocs, load everything up and then do this

mv htdocs htdocs.bak
mv htdocsNew htdocs



.:[ Never resist a perfect moment ]:.

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 05-26-2005 23:54

I've usually closed the site using an .htaccess file that blocks all access except that coming from my IP. Once I'm happy that everything is working, I update .htaccess and make the site live.

But bitdamaged's approach is certainly appealing.

« BackwardsOnwards »

Show Forum Drop Down Menu