bash init.sh 在尝试设置 Homestead 时没有创建我的 homestead.yaml 文件
bash init.sh is not creating my homestead.yaml file when trying to setup Homestead
我正在尝试在 Windows 7 机器上安装和设置我的 VM/Homestead。我一直在按照 http://laravel.com/docs/5.1/homestead#installation-and-setup
上的说明进行操作
但是,在尝试创建 Homestead.yaml 文件时,我得到以下信息
c:\sites\Homestead>bash init.sh
mkdir: cannot create directory `//.homestead': No such file or directory
cp: accessing `//.homestead/Homestead.yaml': No such host or network path
cp: accessing `//.homestead/after.sh': No such host or network path
cp: accessing `//.homestead/aliases': No such host or network path
Homestead initialized!
如何创建 homestead.yaml 文件?
这是 Homestead 文件夹中所有文件的列表
c:\sites\Homestead>dir
Volume in drive C has no label.
Volume Serial Number is CEB9-FADD
Directory of c:\sites\Homestead
07/24/2015 11:21 AM <DIR> .
07/24/2015 11:21 AM <DIR> ..
07/24/2015 11:21 AM 14 .gitattributes
07/24/2015 11:21 AM 18 .gitignore
07/24/2015 11:21 AM 497 composer.json
07/24/2015 11:21 AM 4,171 composer.lock
07/24/2015 11:21 AM 1,220 homestead
07/24/2015 11:21 AM 270 init.sh
07/24/2015 11:21 AM 1,077 LICENSE.txt
07/24/2015 11:21 AM 155 readme.md
07/24/2015 11:21 AM <DIR> scripts
07/24/2015 11:21 AM <DIR> src
07/24/2015 11:21 AM 876 Vagrantfile
9 File(s) 8,298 bytes
4 Dir(s) 188,985,827,328 bytes free
另外,我需要先安装作曲家然后 laravel 吗?我有点困惑。在我看来,我需要打开 VM 的控制台才能在其上安装作曲家。如果是这种情况,如何从我的 windows 7 笔记本电脑打开 VM 的控制台?
我不确定这里的正确解决方案是什么,或者我的解决方法是否可行。
这就是我所做的。
我打开了 init.sh 文件并更改了行
homesteadRoot=~/.homestead
到 "note: make sure you type the correct path of the location of your "homestead" 目录,由 Git" 克隆"=12=]
homesteadRoot=C:/sites/homestead
这似乎奏效了。
在 Homestead 目录(从 git 克隆的目录)中的 git bash 中尝试 运行 此命令。我想正常的 window 命令行无法识别 '~/' .
我正在尝试在 Windows 7 机器上安装和设置我的 VM/Homestead。我一直在按照 http://laravel.com/docs/5.1/homestead#installation-and-setup
上的说明进行操作但是,在尝试创建 Homestead.yaml 文件时,我得到以下信息
c:\sites\Homestead>bash init.sh
mkdir: cannot create directory `//.homestead': No such file or directory
cp: accessing `//.homestead/Homestead.yaml': No such host or network path
cp: accessing `//.homestead/after.sh': No such host or network path
cp: accessing `//.homestead/aliases': No such host or network path
Homestead initialized!
如何创建 homestead.yaml 文件?
这是 Homestead 文件夹中所有文件的列表
c:\sites\Homestead>dir
Volume in drive C has no label.
Volume Serial Number is CEB9-FADD
Directory of c:\sites\Homestead
07/24/2015 11:21 AM <DIR> .
07/24/2015 11:21 AM <DIR> ..
07/24/2015 11:21 AM 14 .gitattributes
07/24/2015 11:21 AM 18 .gitignore
07/24/2015 11:21 AM 497 composer.json
07/24/2015 11:21 AM 4,171 composer.lock
07/24/2015 11:21 AM 1,220 homestead
07/24/2015 11:21 AM 270 init.sh
07/24/2015 11:21 AM 1,077 LICENSE.txt
07/24/2015 11:21 AM 155 readme.md
07/24/2015 11:21 AM <DIR> scripts
07/24/2015 11:21 AM <DIR> src
07/24/2015 11:21 AM 876 Vagrantfile
9 File(s) 8,298 bytes
4 Dir(s) 188,985,827,328 bytes free
另外,我需要先安装作曲家然后 laravel 吗?我有点困惑。在我看来,我需要打开 VM 的控制台才能在其上安装作曲家。如果是这种情况,如何从我的 windows 7 笔记本电脑打开 VM 的控制台?
我不确定这里的正确解决方案是什么,或者我的解决方法是否可行。
这就是我所做的。
我打开了 init.sh 文件并更改了行
homesteadRoot=~/.homestead
到 "note: make sure you type the correct path of the location of your "homestead" 目录,由 Git" 克隆"=12=]
homesteadRoot=C:/sites/homestead
这似乎奏效了。
在 Homestead 目录(从 git 克隆的目录)中的 git bash 中尝试 运行 此命令。我想正常的 window 命令行无法识别 '~/' .