Laravel Herd stuck whilst trying to set site to HTTPS
HerdAt times Laravel Herd will be stuck, not understanding configuration changes. This is particularly acute with things like changing sites from HTTP to HTTPS or back. One would naturally reach for the `Stop all` menu and restart the services, only noticing that this doesn't seem to solve the problem. The key is the command line.
It appears sometimes at times Laravel Herd doesn't easily stop or start services from the UI.
Instead do this:
clear ; ps -ef | grep nginx lang-bash
Output:
0 39231 1 0 9Oct23 ?? 0:00.01 sudo /Applications/Herd.app/Contents/Resources/nginx-arm64 -g daemon off; -c /Users/eugene/Library/Application Support/Herd/config/nginx/nginx.conf 0 39232 39231 0 9Oct23 ?? 0:00.01 nginx: master process /Applications/Herd.app/Contents/Resources/nginx-arm64 -g daemon off; -c /Users/eugene/Library/Application Support/Herd/config/nginx/nginx.conf 501 39236 39232 0 9Oct23 ?? 0:00.43 nginx: worker process 501 39237 39232 0 9Oct23 ?? 0:00.82 nginx: worker process 501 39238 39232 0 9Oct23 ?? 0:06.92 nginx: worker process 501 39239 39232 0 9Oct23 ?? 0:01.93 nginx: worker process 501 39240 39232 0 9Oct23 ?? 0:02.95 nginx: worker process 501 39241 39232 0 9Oct23 ?? 0:11.74 nginx: worker process 501 39242 39232 0 9Oct23 ?? 0:16.72 nginx: worker process 501 39243 39232 0 9Oct23 ?? 0:10.45 nginx: worker process 501 84865 84717 0 1:09PM ttys001 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox nginx lang-bash
Next do this, base on the process ID:
sudo kill 39231 lang-bash
At this point things should normalize and you can start Laravel Herd from the UI again.