- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
- turn Intel VT-X on @BIOS (Intel VT-X needs CPU support)
- install cygwin with git vim openssh
- reboot computer
- install composer from windows installer
- install virtualbox
- reboot computer
- install vagrant
- reboot computer
- open virtualbox (the Vagrant will auto create vm later)
- open cygin
#validate git installed $ git --version git version 1.7.9 #validate composer installed $ composer --version Composer version 8035dbd7147b1b97237a425e67a3513460108356 2014-06-07 15:04:06 #validate vagrant installed $ vagrant -v Vagrant 1.6.3 #make your own ssh public/private keys $ ssh-keygen -t rsa -C "your@email.com.tw" #make a vm dir at D: $ mkdir /cygdrive/d/vagrant-vm #make code dir at D:\sites $ mkdir /cygdrive/d/sites #create your first Laravel Project $ cd /cygdrive/d/sites $ composer create-project laravel/laravel Laravel $ cd /cygdrive/d/vagrant-vm #clone Laravel Homestead settings $ git clone https://github.com/laravel/homestead.git Homestead $ cd Homestead
- setup Homestead
$ vim Homestead.yaml
authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: /sites
- add laravel/homestead box to vagrant
$ vagrant box add laravel/homestead $ vagrant up
- edit windows hosts file %windir%\System32\drivers\etc\hosts
127.0.0.1 homestead.app
- open your browser and visit http://homestead.app:8000/
- finish~!
Reference:
http://laravel.com/docs/homestead
http://docs.vagrantup.com/v2/getting-started/index.html
https://cygwin.com/
https://getcomposer.org/
留言