Laravel Container VAGRANT+HOMESTEAD+COMPOSER+YAML development environment to build the right steps

Source: Internet
Author: User

Domestic current all translations of vagrant installation Homestead Tutorials have a great pit! After installing according to the tutorial steps, the configuration in Homestead.yaml is not executed!

I finally took 3 nights, finally found the solution!

There are also free video tutorials here:


http://edu.csdn.net/course/detail/2243


Don't ask me who I am, I am Lei Feng's brother, Detonator!

The correct steps are this:

1, install vagrant

2, install VirtualBox

3. Installing the Homestead Tool

Switch to the root directory and execute git clone

CD ~

git clone https://github.com/laravel/homestead.git Homestead

4, Local installation Homestead.box

Vagrant Box Add Laravel/homestead file:///home/jw/Desktop/homestead.box

5, Init Homestead

CD ~/homestead

Bash init.sh

6, Backup Vagrantfile

CD ~/homestead

CP Vagrantfile Vagrantfile_backup

7, Vagrant Init

Initialize Vagrant Box

Vagrant Init Laravel/homestead

After executing this command, vagrant will generate a vagrantfile file in this directory, and this file

Not what we want!!! And this is precisely the domestic all Chinese course "pit"! I spent 3 nights trying to fill this hole! Don't ask me who I am, I am Lei Feng's brother, Detonator!

8, replace Vagrantfile

CP Vagrantfile_backup Vagrantfile

9, start vagrant

Vagrant up

If you are prompted for network-related errors at this time, go to change the top IP address of the Homestead.yaml file to any one such as 192.168.3.3


This article from the "11210934" blog, reproduced please contact the author!

Laravel Container VAGRANT+HOMESTEAD+COMPOSER+YAML development environment to build the right steps

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.