Skip to content

Fix symlinking error while deployment

Compare
Choose a tag to compare
@toxix toxix released this 14 Jan 17:14
· 20 commits to master since this release
a25feb5

It was discovered that deployment was failing while the server was under
load. The reason was, that magento was recreating the shared folders
between the deletion and the symlinking.

We move this step now to be done before the symlink is moved to the new
magento deployed folder. This is also saving some downtime in the
deployment.

*#####################
*## Breaking Change ##
*#####################

This includes a backwards incompatible change. As the targets for the
shared folders needs now to be defined relative to the application root
folder. Absolute pathes are not possible anymore.

So you want to change your config something like this

 magento_shared_folders:
   - src: "{{ magento_shared_directory }}/pub/media"
-    dest: "{{ magento_app_root }}/pub/media"
+    dest: "pub/media"