Periodically, I’ll be trying to load a development using Valet and I’ll end up getting 502 Bad Gateway error.

Whenever I’m faced with this problem, here are the following steps I do to restore functionality (without breaking any of my existing links or certificates):

  1. Run $ composer global update
  2. Run $ valet install
  3. Run $ valet restart

The last step isn’t always necessary but I’ve found there are times where I’ve had to use it.


For reference, check out the past articles related to the above content: