第一次接到api框架任务

来源:互联网 发布:2017网络流行语排行 编辑:程序博客网 时间:2024/05/01 16:40

详细教程参考  https://fsdhub.com/books/laravel-essential-training-5.5/557/development-environment-windows

下载virtualBOX,     http://download.virtualbox.org/virtualbox/5.1.14/VirtualBox-5.1.14-112924-Win.exe

下载vagrant                  https://releases.hashicorp.com/vagrant/1.9.0/vagrant_1.9.0.msi     

直接下一步默认即可安装


配置好laravel环境。


1、下载homestead Box盒子 ,盒子的历史版本https://atlas.hashicorp.com/laravel/boxes/homestead/

在git环境下,进入homestead box的解压目录。然后输入命令 :vagrant box add metadata.json进行安装。没有json文件的可以百度如何使用json安装


2、下载homestead管理脚本     脚本历史版本 https://github.com/laravel/homestead/releases

cd ~

git clone https://git.coding.net/summerblue/homestead.git Homestead

Windows下,~ 目录代表着C:\Users\你的用户名, 而 ~/homestead 代表着C:\Users\你的用户名\Homestead









copy git代码时一定要使用git clone xxxxxx;否则无法看到master/分支信息。

在compser install时出现如下问题

使用composer config -g secure-http false解决便可。

原创粉丝点击