I'm looking to do a blue-green(ish) deployment on a single server (single server due to various factors like having a very simple static site, upcoming infra overhaul, among others). Would the following design be adequate for having minimal/no downtime on an apache server?
/var/www/vhosts/site -> ./site-blue
/var/www/vhosts/site-blue/
/var/www/vhosts/site-green/
/var/www/vhosts/swap.sh
For deployment, we would update the inactive site slot then swap the symlink to point to the other color, then restart the server. I'm pretty sure the symlink will work fine (I see a +FollowSymLinks
option for the <Directory>
tag in the apache conf file) little uncertain about the swap+restart step.
0 Answers