Zero Downtime Laravel Forge Deploys
Tim
82

cp -R doesn't copy .dot directories and files such as .git .env;
mv is not an atomic operation;

I have created the gist to deploy multiple projects: https://gist.github.com/actionm/63b927a9b933e54414ae2857e5712162

It works with symlinks and keeps 2 deployment backups, it’s real zero downtime (excluding database migrations).

Show your support

Clapping shows how much you appreciated ActionM’s story.