我与Laravel Valet建立了一个开发环境,并且工作正常。升级到MacOS Catalina后,所有需要外部请求的页面,例如。在504网关超时中获得条带付款状态结束
nginx / 1.17.0

我已经花了整整一天的时间。试图重新安装代客,酿造PHP,我遵循的每个stackoverflow线程,没有任何帮助。

在我的Nginx日志中:

2019/10/24 17:04:54 [error] 39381#0: *12 upstream timed out (60: Operation timed out) while reading response header from upstream, client: 127.0.0.1, server: dmain.wbz, request: “GET /path/xxx/xxx HTTP/2.0”, upstream: “fastcgi://unix:/Users/dominiknguyen/.config/valet/valet.sock”, host: “dmain.wbz”

最佳答案

经过一整天的调试(有些头发掉了),我以某种方式神奇地使它工作了。如果有人在此问题上受困,则应首先完全卸载代客https://github.com/laravel/valet/issues/341#issuecomment-287048987

valet uninstall
sudo brew services stop nginx
sudo brew services stop php70
sudo brew services stop dnsmasq
brew uninstall nginx
brew uninstall php70
brew uninstall dnsmasq
rm -rf ~/.valet
rm /usr/local/bin/valet


比再次安装代客https://laravel.com/docs/6.x/valet

关于php - Laravel Valet MacOS Catalina:504网关在开发环境外部请求超时,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/58545893/

10-11 06:34