Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 9
    FYI: Magento 2 has a developer mode so you don't have to deploy static content all the time. I've wasted hours and hours in the past month redeploying static content. So don't be like me, and switch to developer mode (on your local machine. Your live server should be on production mode) Commented Dec 22, 2016 at 14:40
  • why regenerate with different version??? I have an issue with deploy file version not match. magento.stackexchange.com/questions/94502/… Commented Feb 20, 2017 at 8:15
  • 4
    If magento is in developer mode it will create symlinks to the static files but for this to happen you have to have .htaccess file in the pub/static folder so it knows how to symlink files, if you deleted the pub/static folder that .htaccess is missing now Commented Mar 30, 2017 at 7:16
  • @NathanMerrill you are so right but most of the dev's don't read documentation and all the answers and still run the static-content:deploy command and what is a bit sad is that some of the companies with account on Stackexchange provide answers like that, waste of time Commented Apr 19, 2017 at 15:53
  • I get annoyed every time I see those comments. You should not have to go to developer mode just to deploy small css changes. Commented Jan 12, 2020 at 12:23