Understanding yaml Homestead file in Laravel

Can someone explain the Homestead.yaml file in detail. Not fully understanding its contents is bothering me.

Here is the full yaml Homestead file:

ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Code
      to: /home/vagrant/Code

sites:
    - map: homestead.app
      to: /home/vagrant/Code/Laravel/public

databases:
    - homestead

variables:
    - key: APP_ENV
      value: local

And here is what I understand about its contents, correct me if I am wrong and, of course, add comments.

allow: ~ / .ssh / id_rsa.pub The
directory on your local computer where you save the public .ssh file. This folder can be any folder in your local machine, right?

: - ~ / .ssh / id_rsa The
directory on the local computer where you store the local .ssh file. This folder can be any folder in your local machine, right?

folders:
    - card: ~ / Code
      to: / home / vagrant / Code

  • -map: , . , ?

  • : , , , ?

:
    - : homestead.app
      to:/home/vagrant/Code/Laravel/public

  • -map: , URL , , , , , localhost, ?

  • to: , ...

:
    -
, , ?

+4
4

: ~/.ssh/id_rsa.pub , .ssh. , ?

: - ~/.ssh/id_rsa , .ssh. , ?

Homestead.yaml , , .ssh

: - : ~/ to:/home/vagrant/Code

-map: , . , ? to: , , , ? , , -map:

: - : homestead.app to:/home/vagrant/Code/Laravel/public

-map: , URL , , , , , localhost, ? to: , ...

- , , , (), , -, : homestead.app . , hosts, /etc/hosts, /windows/system32/drivers/etc/hosts, :

192.168.10.10 homestead.app

: - , , , , , omestead .

,

+4

: - , homestead, ?

. , - homestead, homestead provision, , .

, , reset , , .

+3

, Homestead Homestead.YAML , . , , , , .

https://abbasharoon.me/homestead-yaml-explained-a-z/

+1

options map/to folder, , Vagrant.

- map: ~/Workspace/my/mapped/directory
  to: /home/vagrant/my/directory
  options: 
      owner: "www-data"
      group: "www-data"
      mount_options: ["dmode=0770,fmode=774"]
0

All Articles