Seravo / wordpress

The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment
https://seravo.com
GNU General Public License v3.0
104 stars 54 forks source link

Automatic git status in vagrant ssh is very slow #187

Open TeemuSuoranta opened 3 years ago

TeemuSuoranta commented 3 years ago

In newer box versions, moving to /data/wordpress/ and further (via cd) a neat git status is triggered like so:

DEVELOPMENT [@sitename:/data/wordpress] master(+657/-422)+* ± 

In most cases this is fine and good but at least with Mac Big Sur + Vagrant this is very slow performant in some projects. Maybe it's because they have a lot more files to be crawled than regular projects.

By simply going to /data/wordpress/ might take 1-2 minutes and take CPU temperature in worst cases 95 °C. Is there any easy way to disable this for some project either via config.yml or bash settings?

Screenshot 2021-07-27 at 15 36 39
TeemuSuoranta commented 3 years ago

This is probably linked with this issue https://github.com/Seravo/wordpress/issues/171

I can confirm that operating outside /data/wordpress or even referncing this in /data/wordpress while current directory is outside it is fast. I would investigate hooks for the git status thing but I cannot find reference to it in .bashrc

ypcs commented 3 years ago

Hi. Thanks for the feedback.

We will look at this, at very minimum we should consider disabling the status if git execution takes too long.