Laravelのローカル開発環境を作成(2)
次はHomesteadの導入です。
git clone https://github.com/laravel/homestead.git ~/Homestead
Cloning into 'C:/Users/{ユーザー名}/Homestead'... remote: Enumerating objects: 28, done. remote: Counting objects: 100% (28/28), done. remote: Compressing objects: 100% (18/18), done. remote: Total 3125 (delta 11), reused 19 (delta 9), pack-reused 3097 Receiving objects: 100% (3125/3125), 655.44 KiB | 1.57 MiB/s, done. Resolving deltas: 100% (1862/1862), done.
cd ~/Homestead/
Latest release
v7.18.0
とあるので…
git checkout v7.18.0
Note: checking out 'v7.18.0'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b <new-branch-name> HEAD is now at 48fb3dc 💎 🔖 Tagging v7.18.0
init.bat
bash: init.bat: command not found
こちらのコマンドで成功しました!
bash init.sh
Homestead initialized!