cancel
Showing results for 
Search instead for 
Did you mean: 

Why does my site keep needing static deploy?

Highlighted

Why does my site keep needing static deploy?

Last night I was working on my web site and it was fine, I went to bed and when I woke up, my site has lost all it's formatting.  What would cause it to need to be re deployed when the site was not even being used?

2 REPLIES 2
Highlighted

Re: Why does my site keep needing static deploy?

Hi @bigbob2 

If you are in production mode then you need to run :

php bin/magento setup:static-content:deploy

and if mode is developer then you need to run:

php bin/magento setup:static-content:deploy -f

But after run any of above command you need to set permissions for static folder. Some time after run commands Magento reset permissions of folders.
Run below command to set permission of folders:

sudo chmod -R 777 var/ pub/ generated


It may help you to resolve issue.
If issue resolve, please click on 'Kudos' & Accept as Solution!

 

Highlighted

Re: Why does my site keep needing static deploy?

@bigbob2 

 

It seems to be related to your server configuration or your serer owner. Please check at server level.

 

Apart from that it can be also a reason is there any cron set on server, which is running any commands?

 

And last reason can be files and folders permission, which I am sure already aware and you did properly.

Manish Mittal
https://www.manishmittal.com/