Magento2: 2.0.6 : Symlinks are not created in developer mode

Created on 25 May 2016  路  1Comment  路  Source: magento/magento2

I recently updated to Magento 2.0.6, and now my symlinks are no longer created when I run my site in developer mode.

When I delete the pub/static-folder (I run nginx, so I don't need the .htaccess file) and reload the page, only requirejs-config.js files are created, nothing else.

When I run setup:static-content:deploy, all files are copied, instead of symlinked.

Can anyone tell me what might be going wrong here? I don't want to wait a couple of minutes every time to check my edits to CSS and/or JS files. Is my assumption right that in developer mode symlinks should be automatically created without the setup:static-content:deploy-command?

Most helpful comment

My bad!

It turns out my nginx configuration was overwritten by a provision script. Therefore, my $MAGE_MODE was not set (at all). Applying the default example from nginx.conf.sample solved my problem!

Another 3 hours well spent...

>All comments

My bad!

It turns out my nginx configuration was overwritten by a provision script. Therefore, my $MAGE_MODE was not set (at all). Applying the default example from nginx.conf.sample solved my problem!

Another 3 hours well spent...

Was this page helpful?
0 / 5 - 0 ratings