Enabling developer mode in magento is giving some errors for me, it is still trying to load all my static content. Ive disabled the "sign static content" option.
Also, when I put my Magento environment in production mode, the fonts in my design/frontend/vendor/theme/web/fonts folder are not moved to the static content.
Any thoughts?
Best Answer
When running in
developer
mode, files will still be loading from thepub/static
folder. The difference is that some magic in thepub/static/.htaccess
file routes the request to thepub/static.php
file, which generates symlinks to populate thepub/static
directories with your files, on demand. So, one possible way to fixdeveloper
mode is:pub/static/.htaccess
, and make sure Apache is configured to use.htaccess
files.nginx.conf.sample
file for examples of how to set up the/static/
rewrite.I'm not sure about what's going on with the fonts in
production
mode if runningbin/magento setup:static-content:deploy
isn't moving them.Maybe try to clear all your caches, then run
setup:static-content:deploy
again:bin/magento cache:clean
rm -r var/view_preprocessed/*
rm -r var/page_cache/*
rm -r pub/static/*