Deploying To Stratus

NOTE: Symlinks must use absolute paths.

The easiest way to deploy on Stratus is to continue doing deployments as you do now. You can SSH into Stratus and push your code, move symlinks, and flush caches. Most customers find that appending the Stratus cli commands below are the only additional steps required.

n98-magerun2 cache:disable
/usr/share/stratus/cli cache.all.clear
/usr/share/stratus/cli autoscaling.reinit
sleep 5s
n98-magerun2 cache:enable

autoscaling.reinit performs a rolling update of the php-fpm containers. When you are scaled out this will ensure a seamless update across your scaled php-fpm services.

sleep 5s pauses to wait rolling update of php-fpm containers to complete because autoscaling.reinit is called asynchronously.

See also: