I am using Magneto v2.1.7. Why I have to run setup:static-conent:deploy after every setup:upgrade. Otherwise no CSS or JS works.
Because you are the dumb who never ever tried to read the documentation carefully before creating a new question.
@holy-donkey, https://personalexcellence.co/blog/constructive-criticism/
@devgoku have you read through the docs? What mode are you running Magento 2 in? You should be using developer mode locally.
@devgoku Adding on to what @convenient said – try posting questions/problems like this on the Magento Stack Exchange first.
The reason is, is that your post isn't a bug, but rather a user error. Sometimes it's hard to tell when it's you or the software, but here is a tip that I find often works for me:
@holy-donkey hey donkey....easy pal. I know your name pushed you to use such kind of words.
@convenient . I am running in development mode.
Setup:upgrade removes some folders, a couple in var/ and pub/static. Basically a hardcore cache clear. I've noticed that whenever I've used this command, i have to make sure permissions are set correctly to recreate those folders that were deleted.
I would check permissions on those directories and see whats going on in those folders after you run setup:upgrade vs what happens after setup:static-content:deploy
@devgoku, manual on this feature is present in the Magento Developer Documentation.
Please refer to the Community Forums or the Magento Stack Exchange site for advice or general discussion about this issue. The GitHub issue tracker is intended for Magento Core technical issues only.
Most helpful comment
@holy-donkey, https://personalexcellence.co/blog/constructive-criticism/
@devgoku have you read through the docs? What mode are you running Magento 2 in? You should be using
developermode locally.