> $ composer global require "laravel/homestead=~2.0"
2. Once downloaded, you need to initialize the VM using the following command
(you may need to add Homestead to your path first, if you are using Windows):
> $ homestead init
3. This will create a configuration file that you can edit to point to your projects,
as well as create any databases you may need. To edit this file, you can run
the following command:
> $ homestead edit
4. The file will open in your default text editor. When it does, you will see the
file is organized into sections. To get up and running, the two sections of
most importance are the
folders
section and the
sites
section:
°
folders
: This specifies the directory that you want to be shared
on the VM.
°
sites
: This allows you to map a domain to a folder on the
Homestead VM, similar to Apache Virtual Hosts.
Chapter 2
Do'stlaringiz bilan baham: |