A
A
Alex2019-09-01 20:18:49
Vagrant
Alex, 2019-09-01 20:18:49

How to run laravel project on homestead?

I started to understand with laravel and immediately got stuck with the launch on homestead.
1) Installed virtualbox and vagrant
2) Created a vagrant homestead folder, pulled files from the git there and set the following settings
5d6bfbf4d8393250166217.png
3) launched it with the vagrant up command, added the line 192.168.10.1 password-api.local to the hosts file
4) installed laravel via ssh and set the environment settings
5d6bfc8b34ed5446442502.png
But something went wrong and the browser does not open
5d6bfd007ccf5224099999.png
And tell me if I want to deploy a new project, will I need to repeat all the steps except install virtualbox and vagrant (that is, from 2 to 4)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
SimBioT19, 2019-09-01
@SimBioT19

To get started, do vagrant ssh
Will you connect?

L
LaraLover, 2019-09-02
@LaraLover

Make the settings as follows:
- map: password-api.local
to: /home/vagrant/laravel/api-password/public
Then run - vagrant reload --provision
Connect via SSH to Vagrant, go to the /home/vagrant folder.
Write laravel new api-password - The api-password folder will be created and everything will be in it.
From Windows in the c: / projects folder you will see a folder. Well, you will see the address (if the host is configured correctly)

H
Herman Martin, 2019-09-04
@dklight

try password-api.local:8000 as vagrant forwards port from 80 on the guest machine to 8000 on the host machine,
reset vagrant-a vagrant -down, after immediately vagrant -up, in the same place in the console look at the forwarded ports
, you can start working without homestead, for this you can raise some kind of wamp or openServer and install laravel manually without virtual machine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question