Can someone explain the Homestead.yaml file in details. Not fully understanding its contents is bothering me.
Here is the complete Homestead yaml 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 content, correct me if I'm wrong and of course add comments.
authorize: ~/.ssh/id_rsa.pub
A directory in your local machine where you store the public .ssh file. This folder can be any folder in your local machine, right?keys: - ~/.ssh/id_rsa
A directory in your local machine where you store the local .ssh file. This folder can be any folder in your local machine, right?folders:
- map: ~/Code
to: /home/vagrant/Code
-map: A directory in your local machine where you store all of your porjects. This folder can be any folder in your local machine, right?
to: I believe this is where your projects will be stored in the virtual machine, if this is correct, does the last folder needs to match the last folder in the local structure?
sites:
- map: homestead.app
to: /home/vagrant/Code/Laravel/public
-map: I believe this is the url or domain you will be using to get to your site and it can be anything you want as long as you add it to your localhost file, correct?
to: I'm not sure what this is...
databases:
- homestead
A databese called homestead will be created automatically, correct?
Thanks