Second - Focus on your Terminal only
Then follow the instruction here:
https://www.danwalker.com/setting-up-a-laravel-homestead-box/
if the first one fails, you can follow here https://petericebear.github.io/installing-laravel-homestead-osx-20160514/
Finally, you can take a look at the documentation https://laravel.com/docs/6.x/homestead or start reading the step at https://laravel.com/docs/6.x/installation
Just remember - virtualbox is there for nothing if you follow the instruction from Dan Walker :)
Basically (after you install virtualbox, vagrant and git)
1. Install the Homestead
2. Then, go to Homestead folder and run vagrant up (after you configure Homestead.yaml - follow Dan Walker steps)
Homestead % sudo vagrant up
Password:
Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Checking if box 'laravel/homestead' version '8.2.1' is up to date...
==> homestead: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> homestead: flag to force provisioning. Provisioners marked to run always will still run.
Homestead % sudo vagrant provision
==> homestead: Running provisioner: file...
homestead: /Users/mylap/Homestead/aliases => /tmp/bash_aliases
==> homestead: Running provisioner: shell...
homestead: Running: inline script
==> homestead: Running provisioner: shell...
homestead: Running: inline script
==> homestead: Running provisioner: shell...
homestead: Running: inline script
==> homestead: Running provisioner: shell...
homestead: Running: inline script
==> homestead: Running provisioner: shell...
homestead: Running: inline script
==> homestead: Running provisioner: shell...
homestead: Running: inline script
homestead: Ignoring feature: mariadb because it is set to false
==> homestead: Running provisioner: shell...
homestead: Running: inline script
homestead: Ignoring feature: ohmyzsh because it is set to false
==> homestead: Running provisioner: shell...
homestead: Running: inline script
homestead: Ignoring feature: webdriver because it is set to false
==> homestead: Running provisioner: shell...
homestead: Running: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/vagrant-shell20191118-12061-jukqa0.sh
==> homestead: Running provisioner: shell...
homestead: Running: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/vagrant-shell20191118-12061-1m33y24.sh
==> homestead: Running provisioner: shell...
homestead: Running: script: Creating Certificate: mytest.local
==> homestead: Running provisioner: shell...
homestead: Running: script: Creating Site: mytest.local
==> homestead: Running provisioner: shell...
homestead: Running: inline script
==> homestead: Running provisioner: shell...
homestead: Running: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/vagrant-shell20191118-12061-sbf7fz.sh
==> homestead: Running provisioner: shell...
homestead: Running: script: Checking for old Schedule
==> homestead: Running provisioner: shell...
homestead: Running: script: Clear Variables
==> homestead: Running provisioner: shell...
homestead: Running: script: Restarting Cron
==> homestead: Running provisioner: shell...
homestead: Running: script: Restarting Nginx
==> homestead: Running provisioner: shell...
homestead: Running: script: Creating MySQL Database: homestead
==> homestead: Running provisioner: shell...
homestead: Running: script: Creating Postgres Database: homestead
==> homestead: Running provisioner: shell...
homestead: Running: script: Update Composer
homestead: You are already using composer version 1.9.1 (stable channel).
==> homestead: Running provisioner: shell...
homestead: Running: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/vagrant-shell20191118-12061-iyqu6p.sh
==> homestead: Running provisioner: shell...
homestead: Running: script: Update motd
==> homestead: Running provisioner: shell...
homestead: Running: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/vagrant-shell20191118-12061-dwbd58.sh
3. Then, open the ssh
Homestead % sudo vagrant ssh
Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-64-generic x86_64)
Thanks for using
_ _ _
| | | | | |
| |__ ___ _ __ ___ ___ ___| |_ ___ __ _ __| |
| '_ \ / _ \| '_ ` _ \ / _ \/ __| __/ _ \/ _` |/ _` |
| | | | (_) | | | | | | __/\__ \ || __/ (_| | (_| |
|_| |_|\___/|_| |_| |_|\___||___/\__\___|\__,_|\__,_|
* Homestead v9.2.2 released
* Settler v8.2.0 released
0 packages can be updated.
0 updates are security updates.
vagrant@homestead:~$ ls
code
vagrant@homestead:~$ cd code
vagrant@homestead:~$ laravel new mytest.local
5. configure your /etc/hosts to have ip 192.168.10.10 pointing to your laravel page. In my example, 192.168.10.10 mytest.local is the name
6. Open browser and go to http://mytest.local (or your page name defined in Homestead.yaml and /etc/hosts)
That's all bro
0 comments:
Post a Comment