I
I
Ivan Ivanov2018-03-14 01:13:51
Vagrant
Ivan Ivanov, 2018-03-14 01:13:51

How to add new sites using vagrant, homestead, laravel using serve?

How I try to do this in windows 10:
Open Git Bash Here

homestead up
homestead ssh

Then I use this construct:
serve quickstart-intermediate.app /home/vagrant/code/quickstart-intermediate/public 80

I prescribe in hosts
192.168.10.10 quickstart-intermediate.app
When opened in the browser, the site opens in the laravel folder. Why so what did I do wrong? I am just starting to learn laravel.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2018-03-14
@romalu

You got back a little confused. The command serveis needed if you do not have a local server, only PHP (which may well work as a server if necessary). And Homestead is virtual with a full-fledged Ubuntu and a web server. Therefore, serveyou don’t need to run it there, Nginx is already spinning there.
But then the interesting begins :)
In order for Nginx to be able to serve your domain, it (Nginx) must have a config for it. And for this you need to add the domain and path to the configuration Homestead.yaml, and then do homestead up --provision.
All of this is detailed in the Homestead documentation .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question