Deploying Web Apps




2 Document Root directories

Symlink /var/www/site toggles between them

realpath() symlink at the web server level

Set Document Root to symlink realpath

Never hardcode the document root in code