本期视频登录后即可观看

在 Windows 系统下如何完成 Laravel Sail 的环境构建

本期Laravel Sail 视频课程咱们对 在Windows系统下完成 Laravel Sail 进行基本搭建工作,咱们会完成WSL的安装、Windows Ternimal的安装、Doker Desktop的安装,然后通过Laravel Sail创建一个项目并运行
MArtian 2022.01.10 00:51

8分16秒,听见老师的孩子喊“爸爸”了😂 😂 😂

国营 2022.01.10 00:58

我录视频她就在边上陪着,有时候就会捣捣乱

MArtian 2022.01.10 00:59

没事,挺好的😂

haohexin 2022.01.13 07:41

环境:win11 在sail up 后 RUN apt-get update 等好久就崩掉了

国营 2022.01.13 07:56

恭喜你体会到我的痛苦了,录视频的时候我也崩塌过,这套视频我录了三天

haohexin 2022.01.13 07:59

哈哈 只能边喝茶边一遍遍试了

国营 2022.01.13 08:00

最好把科学上网打开,或者用联通的网络。

haohexin 2022.01.14 02:40

嗯 参考了 https://learnku.com/docs/laravel-development-environment/8.x/setting-up-the-sail-environment-under-windows-10/10352#74faff 然后打开科学上网 一次就成功了

国营 2022.01.14 02:52

为了避免不必要的麻烦,科学上网还是最简单的方式

kk 2022.01.18 06:20

win11环境下执行到 curl -s "https://laravel.build/example-app" | bash 这一步时提示docker is not running,google了一下,人家给的解决办法是在docker的settings -> WSL Integration ->把ubuntu点亮,我碰到的这个问题算解决了[doge],另外wsl2环境的网络联通问题,我换成了小猫咪 + TUN模式,wsl2里面完全不需要配置代理了,真香[doge]

dreamcc 2022.02.26 00:30

Warning: TTY mode requires /dev/tty to be read/writable. Creating a "laravel/laravel" project at "./example-app" Installing laravel/laravel (v9.1.0) - Downloading laravel/laravel (v9.1.0) - Downloading laravel/laravel (v9.1.0) - Downloading laravel/laravel (v9.1.0) - Downloading laravel/laravel (v9.1.0) Failed to download laravel/laravel from dist: curl error 28 while downloading https://api.github.com/repos/laravel/laravel/zipball/ecf7b06c4b2286eab6f4fc946588300c95e2cabb: Connection timed out after 10004 milliseconds Now trying to download from source - Syncing laravel/laravel (v9.1.0) into cache

[RuntimeException]

Failed to clone https://github.com/laravel/laravel.git via https, ssh protocols, aborting.

- https://github.com/laravel/laravel.git

Cloning into bare repository '/root/.composer/cache/vcs/https---github.com-laravel-laravel.git'...

fatal: unable to access 'https://github.com/laravel/laravel.git/': Failed to connect to github.com port 443: Connection refused

- git@github.com:laravel/laravel.git

Cloning into bare repository '/root/.composer/cache/vcs/https---github.com-laravel-laravel.git'...

ssh: connect to host github.com port 22: Connection refused

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package>] [<directory>] [<version>]

这个错误咋弄的呢 咋搞 搞不过去 大半夜想着这事 半夜爬起来 搞了好几个小时 就是搞不过去

国营 2022.02.26 02:06

composer 你用的哪里的镜像,默认的,还是国内的?

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

你可以运行上面指令,切换到国内的阿里云的镜像,重启再试试

dreamcc 2022.02.26 02:10

意思是直接在linux下 直接安装 composer ??? 然后设置阿里镜像么??

国营 2022.02.26 02:17

你就先直接运行这条指令就好,你机器composer应该是安装了,但是镜像肯定没改过

不过也是过 2024.06.07 02:03

Laravel Sail如何实现多站点呀,

国营 2024.06.08 01:31

这个得自己做一下映射,可以搜一搜,过去刚出来的时候我体验过它,现在的新版本一直也没有用过,我更多还是喜欢自己搭环境玩。

微信扫码登录