symlink broke after the new release went live
Deploy script swaps /srv/app/current as a symlink, and after last night's release everything 404s. ls -l /srv/app/current shows current -> /srv/app/releases/2026-11-20 but the new directory is 2026-11-26. The script does ln -s /srv/app/releases/$VERSION /srv/app/current without removing the old link first. I thought ln would overwrite it. What's the correct atomic way to do this? The old releases are still on disk, so nothing is actually gone.
4 replies