Laravel Valet-无法到达此网站 [英] Laravel Valet - This Site Can't Be Reached

查看:252
本文介绍了Laravel Valet-无法到达此网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在本教程之前,我已经成功地遵循了安装Mac Dev Machine的操作: https://laracasts.com/series/setup-a-mac-dev-machine-from-scratch/episodes/10?autoplay=true

I have successfully followed the Setup a Mac Dev Machine until this tutorial: https://laracasts.com/series/setup-a-mac-dev-machine-from-scratch/episodes/10?autoplay=true

问题是当我转到SITENAME.dev时,什么都没有显示.相反,我收到以下消息:

The problem is that when I go to SITENAME.dev, nothing shows up. Instead, I get the following message:

This site can’t be reached

test2.dev拒绝连接.您是说 http://test2.de/吗?在Google中搜索test2开发ERR_CONNECTION_REFUSED

test2.dev refused to connect. Did you mean http://test2.de/? Search Google for test2 dev ERR_CONNECTION_REFUSED

我已经尝试过使用laravel安装(使用laravel安装程序)和wordpress安装.都没有.

I've tried this both for a laravel install (using the laravel installer) and a wordpress install. Neither one works.

任何想法,为什么它不起作用.我已按照课程及评论进行了循序渐进.例如,我根据课程和注释对.zshrc文件进行了如下修改:

Any idea why it is not working. I have followed the course step-by-step as well as the comments. For instance, I modified the .zshrc file as follows based on the course and comments:

export PATH=$HOME/bin:/usr/local/bin:$HOME/.composer/vendor/bin:$PATH

并且,如果相关的话,我在Mac Sierra(新近更新)上.

And, in case it is relevant, I am on Mac Sierra (freshly updated).

简而言之,在Jeffrey能够获得laravel主页的地方,我遇到了一个错误.

In short, where Jeffrey is able to get a home page of laravel, I get an error.

有什么办法解决这个问题吗?

Any idea how to fix this?

谢谢.

推荐答案

转到您的站点文件夹并执行以下命令:

Go to your site folder and execute the following commands:

cd your_project
composer global update
valet uninstall
rm -rf ~/.valet
rm -rf ~/.config/valet
valet install
valet link
valet open

它为我解决了这个问题.

It fixed this issue for me.

这篇关于Laravel Valet-无法到达此网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆